title: Convert HTML Table to Pandas Data Frame in Python
body: <p>Here i am trying to extract a table from a website as specified in Python code . i am able to get the HTML Table and further i am unable to convert to data frame using Python . Here is the code </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code># import libraries
  import requests
  from bs4 import BeautifulSoup
  
  # specify url
  url = 'http://my-trade.in/'
  
  # request html
  page = requests.get(url)
  
  # Parse html using BeautifulSoup, you can use a different parser like lxml if present
  soup = BeautifulSoup(page.content, 'html.parser')
  
  tbl =soup.find("table",{"id":"MainContent_dataGridView1"})</code></pre>
  </div>
  </div>
    </p>
  
  <p><a href="https://i.stack.imgur.com/wg6RB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/wg6RB.jpg" alt="How to convert this HTML Format Table to Data Frame"></a></p>