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