I use pd.set_option(\"display.colheader_justify\",\"right\") to set the column header. But I can\'t find the option for data by pd.describe_option()
pd.set_option(\"display.colheader_justify\",\"right\")
pd.describe_option()
If you wanna align both text and header to the left for example you can use:
df.style.set_properties(**{'text-align': 'left'}).set_table_styles([ dict(selector='th', props=[('text-align', 'left')] ) ])
This first sets the text to the left and then the header.