title: Webscraping table data in Python
body: <p>I want to fetch data from the website using web scraping but getting an error in to_html </p>
  
  <pre><code>import requests
  import pandas as pd
  
  
   url= 
  'https://www.nseindia.com/live_market/dynaContent/live_watch/equities_stock_watch.htm'
   html = requests.get(url).content
   df_list = pd.read_html(html)
   df = df_list.to_html(html)
   print (df)
   df.to_csv('my data.csv')
  </code></pre>
  
  <p>Error :</p>
  
  <hr>
  
  <pre><code>AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-35-61d14e08ca97&gt; in &lt;module&gt;()
        5 html = requests.get(url).content
        6 df_list = pd.read_html(html)
  ----&gt; 7 df = df_list.to_html(html)
        8 print (df)
        9 df.to_csv('my data.csv')
  
  AttributeError: 'list' object has no attribute 'to_html'
  </code></pre>