1
我想要調用df.plot.scatter(...)
如圖所示here,其中df
是pandas.Dataframe
對象。Pandas Dataframe沒有繪圖功能
但我的IDE不能建議任何繪圖功能,當我發起建議(雖然它可以建議其他dataframe
成員像fillna()
,to_json()
等)。
如果我這麼寫df.plot.scatter(...)
並運行它,它給了錯誤:
AttributeError: 'function' object has no attribute 'scatter'
我使用Python 3.4在Windows 7上我的IDE是PyCharm。這些是進口:
import pandas as pd
import matplotlib.pyplot as plt
它可能是關於我的Python版本,或者這個功能是從熊貓API中刪除?提前致謝。
您可以將您的代碼嗎? – miradulo
你的'熊貓'的版本是什麼?通過'pd.show_versions()'來檢查它 – jezrael