如何修复PlotlyRequestError?

2024-04-26 09:24:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我在执行代码时收到一条“plotlyrequesteror:No message”。

import plotly
import plotly.plotly as py
import plotly.graph_objs as go

Filedata = pd.read_csv('C:\\Documents\\Book4.csv')
data = [go.Scatter(x=Filedata.ix[:,0],y=Filedata.ix[:,1])]
layout = go.Layout(
title='Analysis 2016',
xaxis=dict(title='Startdate'),
yaxis=dict(title='Conductivity'))

fig = go.Figure(data=data, layout=layout)
py.iplot(fig)

Tags: csv代码pyimportgodatatitleas