Hi I have the following data frame:
col1 col2 col3 col4 col5
row1 0 1 0 0 0
row2 0 0 0 0 1
I want to create a data frame like
row1 col2
row2 col5
Actaully I want to select the column names whose value is 1.