1

Im wondering why taking a max from a dataframe column of strings throws no error..

E.g. consider the following pandas dataframe:

df_test = pd.DataFrame({'names': ['Tim', 'Sebby', 'Max', 'Julia', 'Troy']})

When taking the max of the column,

df_test.max()

it gives me

Troy

I don't understand how this works? How can pandas take the max of strings?

MJimitater
  • 833
  • 3
  • 13
  • 26

0 Answers0