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:

https://github.com/pydata/pandas/blob/e4cb0f8a6cbb5f0c89b24783baa44326e4b2cccb/pandas/core/format.py#l893


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -