Last active
August 29, 2015 13:57
-
-
Save straypacket/9542825 to your computer and use it in GitHub Desktop.
Udacity EDA course
This file contains hidden or 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 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