Skip to content

Instantly share code, notes, and snippets.

@adxrgh
Created April 17, 2019 22:04
Show Gist options
  • Save adxrgh/b37a625971bdb7350abcf866e848065b to your computer and use it in GitHub Desktop.
Save adxrgh/b37a625971bdb7350abcf866e848065b to your computer and use it in GitHub Desktop.
[describe dropna itself?] #questions
df = pd.DataFrame([('bird', 'Falconiformes', 389.0),
...: ...: ('bird', 'Psittaciformes', 24.0),
...: ...: ('mammal', 'Carnivora', 80.2),
...: ...: ('mammal', 'Primates', np.nan),
...: ...: ('mammal', 'Carnivora', 58)],
...: ...: index=['falcon', 'parrot', 'lion', 'monkey', 'leopard'],
...: ...: columns=('class', 'order', 'max_speed'))
df.groupby('class').groups
df.groupby('class').describe()
#the output automatically dropna ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment