我是一个初学者,我正在按照一个入门教程的情节,我面临着一个问题. 我用的是朱庇特.
以下是代码:
import numpy as np
import pandas as pd
import cufflinks as cf
import chart_studio.plotly as py
import plotly.tools as tls
import plotly.graph_objs as go
tls.set_credentials_file(username = "xxx", api_key = "yyyy")
以及我所得到的错误.
--------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[21], line 1
----> 1 tls.set_credentials_file(username = "xxxx", api_key = "yyy")
AttributeError: module 'plotly.tools' has no attribute 'set_credentials_file'
我在So上看到的所有其他问题都是几年前的问题,恐怕这个包的文档已经更新了.
有人能帮帮忙吗?