4
我試圖運行下面的代碼,但我不斷收到語法錯誤。它有時在iPython筆記本上運行,但它不穩定。matplotlib內聯Python 2.7%
該代碼應該得到變量集的氣泡圖。
%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']);