![]() |
VOOZH | about |
In this article, we will learn how to get maximum value in a Pandas Dataframe.
To download the dataframe used in this example, click here.
Output:
👁 ImageExplanation:
idxmax() returns the row index where the column has its maximum value.
Output:
👁 ImageWe can verify whether the maximum value is present in index or not.
Output:
👁 Imagedf.iloc[400:410]: slices the rows from index 400 to 409 in the DataFrame to check the actual values and verify where the maximum value is located.