create a bar chart using plotly
问题 I'm trying to create a bar chart using plotly . The input data looks like: In [7]: datag.ix[:,0].tolist()[1:6] Out[7]: [2020.0, 5000.0, 6010.0, 6017.0, 6020.0] and In [8]:datag.ix[:,1].tolist()[1:6] Out[8]: [0.005178087393490427, 0.0014053668695097226, 0.3174139251746979, 0.006049724003653125, 0.24824287385322272] and the code is import plotly import plotly.offline as offline import plotly.plotly as py import plotly.graph_objs as go trace1 = go.Bar( x=[str(x) for x in datag.ix[:,0].tolist()[1