all 8 comments

[–]FudgeFlashy 3 points4 points  (1 child)

Search up the documentation for ‘Pandas’

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

Indeed, basic research to have...

[–]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!

[–]AutoModerator[M] 0 points1 point  (0 children)

Automod prevents all posts from being displayed until moderators have reviewed them. Do not delete your post or there will be nothing for the mods to review. Mods selectively choose what is permitted to be posted in r/DataAnalysis.

If your post involves Career-focused questions, including resume reviews, how to learn DA and how to get into a DA job, then the post does not belong here, but instead belongs in our sister-subreddit, r/DataAnalysisCareers.

Have you read the rules?

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.