Skip to content

Instantly share code, notes, and snippets.

@straypacket
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save straypacket/9542825 to your computer and use it in GitHub Desktop.
Save straypacket/9542825 to your computer and use it in GitHub Desktop.
Udacity EDA course
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pylab
plt.rcParams['font.size'] = 8.0
plt.rcParams['figure.figsize'] = 6.0, 4.0
df = pd.DataFrame.from_csv('/Users/gsc//Dropbox/datasets/pseudo_facebook.tsv', sep='\t')
# Scatter plots
plt.scatter(df["age"], df["tenure"], s=10, c='r', alpha=.01)
plt.show()
# Box plot by age
df.boxplot('age','gender')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment