How do I hide the column labels via pandas style? There is a hide_index() method that removes the index row, unfortunately the hide_column() label removes the entire column (both the header and the data). I just want to hide the headers. thanks!
set_table_styles
You can set the style
for the table. Docs
df = pd.DataFrame(1, range(3), ['Look', 'At', 'My', 'Header'])
df.style
df.style.set_table_styles([
{'selector': 'thead', 'props': [('display', 'none')]}
])
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