python - iplot 是否适用于带有 cufflinks 包的 python 版本 >2.7?
问题描述
我在 jupyter notebook 中有这段代码
df = cars[['cyl', 'wt', 'mpg']]
layout = dict(
title = 'Chart from Pandas DataFrame',
xaxis = dict(title = 'x-axis'),
yaxis = dict(title = 'y-axis')
)
df.iplot(filename = 'cf-simple-line-chart', layout = layout)`
汽车数据集可以在https://github.com/syedRumman/Python-and-Data-Science.git找到
我正在使用 python 3.7 版本。当我尝试使用 df.iplot() 时,出现此错误
#The data property of a figure may only be assigned a list or tuple that contains a permutation of a subset of itself
Invalid trace(s) with uid(s): {None}
当我打电话
df.iplot(filename = 'cf-simple-line-chart', layout = layout)
iplot() 是否与版本 > 2.7 中的 pandas 数据框库不兼容?
解决方案
推荐阅读
- python - 导入 Cython 扩展获取错误:“modulenotfounderror: no module named ...”
- php - 将 WooCommerce 产品描述移动到其自己的 div 中的摘要下方
- floating-point - 是否有适合压缩 GPS 航路点的算法?
- c# - 我在 windows 上构建了 ac# .NET 游戏,但是如何将它发送给使用 Mac 的朋友玩?
- c# - Asp.net mvc 中的嵌套 Groupby 函数
- dynamics-crm - 在 CRM 中查找查找字段的记录 ID 或 GUID
- laravel - vuetify-loader 1.6 与 laravel mix 不兼容,vue-loader 15 目前不支持带有 oneOf 的 vue 规则
- twilio - 查看 Twilio 聊天成员/用户/客户是否有未读消息的简单方法是什么?
- php - 在数组数组中查找值?
- amazon-web-services - 计划任务上的 ECS curl 运行状况检查