Skip to content

Instantly share code, notes, and snippets.

@achillesp
Created March 6, 2019 19:49
Show Gist options
  • Save achillesp/336de1d98d4c6e2a5fa0bf2e3e7396b6 to your computer and use it in GitHub Desktop.
Save achillesp/336de1d98d4c6e2a5fa0bf2e3e7396b6 to your computer and use it in GitHub Desktop.
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
df = pd.read_csv("UNdata_Export_20190228_181628056.csv")
df.head()
df.tail()
df.head(1)
df.head(10)
df.shape
df.dtypes
df.sort_values(by='Year', ascending=False).head(3)
df.Value.sum()
round(df.Value.mean())
df.describe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment