iplot是否可以在带有袖扣包的Python版本> 2.7中使用?

时间:2018-09-18 04:08:28

标签: python pandas plotly

我在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)

The Error

iplot()是否与版本> 2.7的pandas数据帧库不兼容?

0 个答案:

没有答案