Python中DataFrame为什么无法使用iplot方法?
python 中 iplot 方法的使用
在使用 python 时,用户可能遇到无法使用 iplot 方法的问题,如下图所示:
![错误提示图片]问题:
为什么代码中的 dateframe 无法使用 iplot 方法?
答案:
pandas 的 dataframe 本身没有 iplot 方法。要使用 iplot 方法,需要通过第三方库 cufflinks 将 plotly 的 iplot 方法挂载到 dataframe 上。以下是实现此目的的步骤:
import cufflinks as cfcf.go_offline()cf.set_config_file(offline=False, world_readable=True)
执行这些代码后,可以成功使用 iplot 方法绘制 dataframe 中的数据。
以上就是Python 中 DataFrame 为什么无法使用 iplot 方法?的详细内容,更多请关注范的资源库其它相关文章!
转载请注明:范的资源库 » Python中DataFrame为什么无法使用iplot方法?