Correlation Pct Change
Correlation/PCT_CHANGE
Some Useful Pandas Tools
# change index to datetime
df.index = pd.to_datetime(df.index)
# plotting data
df.plot(grid=True)
# join two dataframes
df1.join(df2)
# isolate dataset
df['col']
# Computing % changes and differences in time series
df['col'].pct_change()
df['col'].diff()
# pandas correlation method of Series
df['col_name'].corr(df['col_name2'])
# scatter plot
plt.scatter(df['col_name'], df['col_name2'])
plt.show()Last updated