I am trying to remove index while converting pandas data-frame into html table. Prototype is as follows:
import pandas as pd
import numpy as np
df= pd.DataFrame({'list':np.random.rand(100)})
html_table = df.to_html()
In html table I don't want to display index.
Try this:
html_table = df.to_html(index = False)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With