Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an equivalent of kable (R) on python?

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

like image 361
P. Vauclin Avatar asked Mar 28 '19 15:03

P. Vauclin


People also ask

Is there a table function in Python?

Python offers the ability to easily turn certain tabular data types into nicely formatted plain-text tables, and that's with the tabulate function.

Which R package has Kable?

The kableExtra package (Zhu 2021) is designed to extend the basic functionality of tables produced using knitr::kable() (see Section 10.1).

What is Kable in R?

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.


1 Answers

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

like image 180
alparslan mimaroğlu Avatar answered Oct 17 '22 08:10

alparslan mimaroğlu