Last active
August 29, 2015 14:05
-
-
Save azimut/5264ae0105cd4f479fb8 to your computer and use it in GitHub Desktop.
kata - python data analysis
This file contains 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 sys | |
import pandas as pd | |
import matplotlib.pylab as plt | |
pd.options.display.mpl_style = 'default' | |
mpl_stylesheet = {'interactive':False} | |
plt.rcParams.update(mpl_stylesheet) | |
df = pd.read_csv( 'gold.csv') | |
df.date = pd.to_datetime(df.date, format='%d/%M/%Y') | |
df.set_index('date',inplace=True) | |
df[sys.argv[1]:sys.argv[2]].price.plot(label='price', title='gold price over time') | |
plt.legend(loc='best') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Es mucho mas interesante de lo que pensaba el libro1. Gracias!