python - Remove border from html table created via pandas -
i using python script display dataframe on webpage. used df.to_html
convert dataframe html. however, default, sets border 0. tried overriding having custom css template didn't work.
here pandas code:
ricsubscription.to_html(classes='mf')
is there parameter can pass set border 0 while making call?
to_html()
generates <table border="1" class="dataframe">...
you do:
ricsubscription.to_html().replace('border="1"','border="0"')
also, answer specifically, there not appear can pass. border="1"
appears hardcoded:
Comments
Post a Comment