Articles → Pandas → Read_Html Function In Pandas

Read_Html Function In Pandas






Purpose





HTML Page




Picture showing the webpage with the data in the tabular form



Install LXML Package




pip install lxml



Code


import pandas as pd

table = pd.read_html(r'C:\countries_simple.html')

print(table[0])



Output


Picture showing the output of read_html function in pandas



Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 10, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250