14

I'm trying to add group row and background colors to a table. As i'm new on python I knew Kable from R so I was wondering if there was an equivalent.

Here is an example of what I would like to get out of :

Table from Kable

P. Vauclin
  • 367
  • 1
  • 2
  • 10

1 Answers1

2

Pandas has this feature built in. It is called style You can add all sorts of conditional formattings.

alparslan mimaroğlu
  • 1,450
  • 1
  • 10
  • 20
  • 1
    If you are asking about conditional formattings specifically here are some [examples](https://stackoverflow.com/questions/41203959/conditionally-format-python-pandas-cell). Other than that it really depends on your use case but I'd love to help if you provide more details. – alparslan mimaroğlu Jul 29 '21 at 12:40