0

Is it possible to format ( set background color or bars or highlight) columns in pandas dataframe using styler ? I want to format each column different on certain conditions . In dataframe df for column C all values less than 99 are red, for column B containing dates getting the bars.

Abhinav Kumar
  • 177
  • 2
  • 5
  • 22
  • Are you using a web based IDE like jupyter notebooks? – Angel Roman Apr 25 '19 at 05:24
  • No, I am passing the output to Outlook Application, No web IDE. @AngelRoman – Abhinav Kumar Apr 25 '19 at 10:52
  • Yes you can do that. You can find information on how to style dataframes here[https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html] and a similar question about rendering it to outlook here[https://stackoverflow.com/questions/36897366/pandas-to-html-using-the-style-options-or-custom-css]. – Angel Roman Apr 25 '19 at 16:32
  • They both are similar but dont work to my needs. – Abhinav Kumar Apr 25 '19 at 16:35

0 Answers0