title: Python: Plotly 3D Surface Plot
body: <p>I am having a tough time drawing the Plotly 3d surface plot. I have a big data frame of 4000 rows and three columns. I did ask questions here and got some answers. When I try them, it takes hours for the code to run yet I see no plot. I want to confirm what I am doing is right. Because I am new to the surface plots.</p>
  <p>My code:</p>
  <pre><code>import plotly.graph_objects as go
  import plotly.graph_objs
  import plotly
  df = 
  index     x           y           z
  0        10.2        40.5        70.5            
  1        30.5        30.2       570.5
  .
  .
  4000     100.5       201.5      470.5
  
  df['z']= [df['z'].tolist for x in df.index]
  df = 
  index     x           y           z
  0        10.2        40.5       [70.5,570.5,..,470.5]            
  1        30.5        30.2       [70.5,570.5,..,470.5]
  .
  .
  4000     100.5       201.5      [70.5,570.5,..,470.5]
  
      zdata = [df['z'].tolist()]*len(df)
      plotly.offline.plot({&quot;data&quot;:[go.Surface(x=df['x'].values,
                                              y=df['y'].values,
                                              z = df['z'].values)],
      &quot;layout&quot;:plotly.graph_objs.Layout(title='Some data', autosize=False,
                        width=600, height=600,
                      scene = dict(xaxis_title='x',
                      yaxis_title='y',
                      zaxis_title='z'),
                        margin=dict(l=10, r=10, b=10, t=10))})
  </code></pre>
  <p>I would be grateful to have somebody clarify me that what I am doing to generate a surface plot is correct?</p>