Need to find 5 shortest index for each column in python

Job ID: 30707228

Budget: $10 – $20 CAD

Write a function in python to find out 5 shortest index for each column name from the column value. The function will output a csv file where the columns will be following,
feature_name index name value
col 1 index1 corresponding shortest value
col1 index2 corresponding second shortest value
and so on..
Have to get five indexes with shortest values for the column for all the columns in the dataset.
Will provide more details if required.