Function that will go though a column, if the number is above 0 return column name, but when is 0 return "Not Available'
问题 I need some help. Let's say I have the below dataframe called venues_df I also have this function: return_most_common_venues def return_most_common_venues(row, 4): # Selects the row values row_values = row.iloc[1:] # Sorts the selected row values row_values_sorted = row_values.sort_values(ascending=False) # Returns the column name of the first 4 sorted values return row_values_sorted.index.values[0:4] If I apply my function on the first row: return_most_common_venues(venues_df.iloc[0, :], 4)