Since one column of my pandas dataframe has nan value, so when I want to get the max value of that column, it just return error.
nan
>>> d
You can set numeric_only = True when calling max:
numeric_only = True
max
df.iloc[:, 1].max(numeric_only = True)