A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Genentech/pysummaries below:

Genentech/pysummaries: Generate beautiful summary tables from pandas dataframes

Welcome to PySumaries documentation!

PySummaries is a Python package to easily produce table summarizations from pandas dataframes.

For more detailed information, please look at the documentation

You can install the package with pip:

Let's say we have a dataframe with some data we want to summarize. Let's take a look at the data:

import pandas as pd

from pysummaries import get_table_summary, get_sample_data

df = get_sample_data()
df

Now, let's do a table one stratifying by group

We can use two backends for the html representation: a pysummaries native representation, and one using the popular great_tables package

Let's start first with the PySummaries native backend:

summary_table = get_table_summary(df, strata='group', backend='native')  
summary_table

And now, let's try the great tables backend!

summary_table = get_table_summary(df, strata='group', backend='gt')  
summary_table

You can customize your tables! For this and more options, please look at the documentation


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4