Using the 2013_NYC_CD_MedianIncome_Recycle.xlsx file, calculate the correlation between the recycling rate and the median income. Discuss your findings in your PR.


In [1]:
import pandas as pd

In [2]:
df = pd.read_excel("2013_NYC_CD_MedianIncome_Recycle.xlsx")

In [5]:
#This is a weird function.
df.corr()


Out[5]:
MdHHIncE RecycleRate
MdHHIncE 1.000000 0.884783
RecycleRate 0.884783 1.000000

In [ ]: