I have a csv file or pd dataframe object with labels on both axis (columns and rows). I need to check the values of each cell and if the value is True, I need to print the corresponding axis labels (both axis) for the values. I spent some time and couldn't find a solution out there in Python. Really appreciate any help.
Something like this:
['', 'column_name_1', 'column_name_2', 'column_name_3',...]
['Row_1_name', 'False', 'False', 'True'...]
['Row_2_name', 'False', 'False', 'True'...]
Thanks for any assistance.