In [47]:
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('ggplot')
In [24]:
df=pd.read_excel('//Users/mercyemelike/Desktop/Lede-Program/algorithms/class4/homework/data/2013_NYC_CD_MedianIncome_Recycle.xlsx')
In [16]:
df.head()
Out[16]:
In [49]:
ax = df.plot(x='MdHHIncE', y='RecycleRate', kind='scatter', figsize = (10,10))
ax.set(xlabel="Median Household Income", ylabel="Recycle Rate")
ax.set_title("Strong Positive Correlation between Median Household Income and Recycle Rate")
Out[49]:
In [50]:
df.corr()
Out[50]:
In [ ]: