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