In [1]:
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
%matplotlib inline
In [4]:
df = pd.read_excel('data/2013_NYC_CD_MedianIncome_Recycle.xlsx')
df.shape
Out[4]:
In [7]:
df.plot(kind='scatter', x='MdHHIncE', y='RecycleRate')
Out[7]:
In [11]:
print("The correlation is", df.corr()['MdHHIncE']['RecycleRate'])