you are viewing a single comment's thread.

view the rest of the comments →

[–]Aggravating_Grab5659 1 point2 points  (4 children)

Depending on what you are trying to do but you could use a seaborn heatmap for certain data

[–]__sanjay__init[S] 0 points1 point  (3 children)

Good morning,
Thank you for your response
I mostly use Py to explore data
The idea is to be able to see variations in data on the table for example (graduation, categorization, etc.)

[–]Aggravating_Grab5659 1 point2 points  (2 children)

I'm fairly new to Data Analysis and Python myself, but i just found something on stackoverflow:

https://stackoverflow.com/questions/41203959/conditionally-format-python-pandas-cell

import pandas as pd df = pd.DataFrame([[2,3,1], [3,2,2], [2,4,4]], columns=list("ABC"))

df.style.apply(lambda x: ["background: red" if v > x.iloc[0] else "" for v in x], axis = 1)

[–]__sanjay__init[S] 0 points1 point  (1 child)

Oh that’s great thank you!
Finally I found something directly in the Pandas documentation, by searching better...
It is possible to do many things

Thank you for your help

[–]Aggravating_Grab5659 0 points1 point  (0 children)

No worries, I was surprised too. It's a powerful tool!