Skip to content

Instantly share code, notes, and snippets.

@kingofhawks
Created February 26, 2014 08:47
Show Gist options
  • Save kingofhawks/9225962 to your computer and use it in GitHub Desktop.
Save kingofhawks/9225962 to your computer and use it in GitHub Desktop.
pandas to get column max value
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