I have a pandas dataframe:
index data1 data2
1 30 20
2 20 10
3 40 90
I want to produce an array of descriptions, one for each row, indicating whether piece of data was significant.
I define significant as having value over 25, so I want the following array:
['data1 was significant', '', 'data1 was significant\ndata2was significant']
I know that I can go through each row and check each column and build an array, but I am wondering if there is an elegant way to do this using pandas.