0
Help with pandas
I wanna show the whole row of the day with max ratio, but it only shows the ratio. https://code.sololearn.com/c7JJHE9BHcP5/?ref=app
1 Resposta
+ 3
You can use df.loc to select specific rows from a DataFrame.
For example
maxratio = df['ratio'].max()
maxday = df.loc[df['ratio']==maxratio]
print(maxday)