matplotlib inline Python 2.7 %

Viewed 8591

I'm trying to run the following code, but I keep getting a Syntax Error. It runs sometimes on iPython notebook, but it's not stable.

The code is supposed to get a bubble chart of the variables set.

%matplotlib inline

import pandas as pd
import numpy as np

df = pd.read_csv('effort.csv')
df.plot(kind='scatter', x='setting', y='effort', s=df['country']*df['change']);
1 Answers
Related