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

21st Nov 2022, 1:20 AM
BLOOD
BLOOD - avatar
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)
21st Nov 2022, 4:39 AM
Tibor Santa
Tibor Santa - avatar