I was trying to use plotly to create scatter plots and Type error occurs.
Could someone gimme a solution for this issue as soon as possible ?
import numpy as np
import pandas as pd
import cufflinks as cf
import plotly as py
import plotly.tools as tls
import plotly.graph_objs as go
a = np.linspace( start = 0, stop = 36, num = 36)
np.random.seed(25)
b= np.random.uniform( low = 0.0, high = 1.0, size = 36 )
trace = go.scatter(x=a, y=b)
data = [trace]
py.iplot(data, filename= ‘basic’)
Error:
TypeError Traceback (most recent call last)
in
2 np.random.seed(25)
3 b= np.random.uniform( low = 0.0, high = 1.0, size = 36 )
----> 4 trace = go.scatter(x=a, y=b)
5 data = [trace]
6 py.iplot(data, filename= ‘basic’)
TypeError: ‘module’ object is not callable