我在jupyter笔记本中有此代码`
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数据帧库不兼容?