Using data from this FiveThirtyEight post (http://fivethirtyeight.com/datalab/opinions-about-the-iran-deal-are-more-about-obama-than-iran/), write code to calculate the correlation of the responses from the poll. Respond to the story in your PR. Is this a good example of data journalism? Why or why not?
In [1]:
import pandas as pd
In [2]:
df = pd.read_excel("fox_survey.xlsx")
In [3]:
df.head()
Out[3]:
In [4]:
df.corr()
Out[4]:
In [ ]: