Writing to an HTML file

The HTML file can be saved as a physical file like so: 

data=pd.read_csv('http://bit.ly/2cLzoxH') 
print(data.to_html('test.html')) 

Take a look at the following screenshot:

Subsetting multi-indexed data using one index (left) and both indices (right)

The row and column names are bold by default. This can be changed with the following code: 

 data.to_html('test.html',bold_rows=False) 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset