Dear tutor,
python3 pandas The function below returns the maximum cost row of the df. def maximum(): return [df.loc[df['cost'].idxmax()]] maximum() But I am only interested in specific column of the df. How could I extract from the returned row of the df? Thanks in advance. Best. banda _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor