407 questions
7
votes
1
answer
5k
views
Using Pandas Styler
This may be a very dumb question, but I cannot seem to see the output of the Pandas Styler. I use the following simple example posted previously by another user.
df = pd.DataFrame([[3,2,10,4],[20,1,...
0
votes
1
answer
325
views
pandas - compare actual value against a target with styler
I have some data which contains columns for the actual value and then the original target value
dimension | metric_actual | metric_target | metric2_actual | metric2_target
A 16.41 ...
1
vote
1
answer
8k
views
Using pandas style to give colors to some rows with a specific condition
This is the output of pandas in excel format:
Id comments number
1 so bad 1
1 so far 2
2 always 3
2 very good 4
3 very bad 5
3 ...
1
vote
1
answer
279
views
pandas styler and its inability to "touch" the index of a table: how to work around it?
I want to fancy my pandas dataframe and prep it for an html rendering. pandas styler is a wonder in this regard, if not for this bit (http://pandas.pydata.org/pandas-docs/stable/style.html) where it ...
7
votes
3
answers
8k
views
format Date in pandas style render
I have a pandas dataframe with three columns of which the first is the Date. To produce a html output I use this:
html_string = df.style.format({'second': "{:0,.0f}",third: "{:0,.0f}"})....
29
votes
3
answers
66k
views
pandas to_html using the .style options or custom CSS?
I was following the style guide for pandas and it worked pretty well.
How can I keep these styles using the to_html command through Outlook? The documentation seems a bit lacking for me.
(df.style
...
9
votes
5
answers
8k
views
pandas Styler. How to ignore the index column from the rendered HTML
I am trying to use the string generated from rendering a styler in an email message. Seems really hard to get this to ignore the dataframe index.
table_styles = [dict(selector="tbody tr th", props=[(...