Created
February 26, 2014 08:47
-
-
Save kingofhawks/9225962 to your computer and use it in GitHub Desktop.
pandas to get column max value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas | |
import numpy as np | |
df = pandas.DataFrame(np.random.randn(5,3),columns=['A','B','C']) | |
df | |
df['A'].argmax() | |
df['A'].max() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment