In [1]:
%matplotlib inline
import pandas as pd
import seaborn as sns
In [2]:
metadata = pd.io.pickle.read_pickle('data.pkl')
In [3]:
munge = []
for w, s in metadata.items():
    munge.append({'wordnum': w, 'sentiment': s})
In [4]:
df = pd.DataFrame.from_records(munge)
In [5]:
sns.regplot('wordnum', 'sentiment', df, color="seagreen")
Out[5]:
<matplotlib.axes._subplots.AxesSubplot at 0x1110e98d0>