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 :
Python offers the ability to easily turn certain tabular data types into nicely formatted plain-text tables, and that's with the tabulate function.
The kableExtra package (Zhu 2021) is designed to extend the basic functionality of tables produced using knitr::kable() (see Section 10.1).
The kable() function in knitr is a very simple table generator, and is simple by design. It only generates tables for strictly rectangular data such as matrices and data frames. You cannot heavily format the table cells or merge cells.
Pandas has this feature built in. It is called style You can add all sorts of conditional formattings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With