showstats: quick and compact summary statistics
showstats quickly produces compact summary statistic tables with vertical orientation.
import polars as pl
from showstats import show_stats
# Daily weather in Seattle, 2012-2015
df = pl.read_csv("docs/data/seattle-weather.csv", try_parse_dates=True)
show_stats(df)
-Date and datetime columns------------------------------------------------------
Col (N=1461) NA% Median Min Max
date 0 2013-12-31 2012-01-01 2015-12-31
-Numerical columns--------------------------------------------------------------
Col (N=1461) NA% Avg SD Median Min Max
precipitation 0 3.03 6.68 0.0 0.0 55.9
temp_max 0 16.44 7.35 15.6 -1.6 35.6
temp_min 0 8.23 5.02 8.3 -7.1 18.3
wind 0 3.24 1.44 3.0 0.4 9.5
-Categorical columns------------------------------------------------------------
Col (N=1461) NA% Uniques Top 1 Top 2 Top 3
weather 0 5 rain (44%) sun (44%) fog (7%)
# Only one type
show_stats(df, "cat") # Other are num, time
-Categorical columns------------------------------------------------------------
Col (N=1461) NA% Uniques Top 1 Top 2 Top 3
weather 0 5 rain (44%) sun (44%) fog (7%)
# Any subset of columns works
show_stats(df.select("temp_max", "wind"))
-Numerical columns--------------------------------------------------------------
Col (N=1461) NA% Avg SD Median Min Max
temp_max 0 16.44 7.35 15.6 -1.6 35.6
wind 0 3.24 1.44 3.0 0.4 9.5
# Add extra quantiles for numerical columns
show_stats(df.select("temp_max", "wind"), "num", quantiles=[0.1, 0.9])
-Numerical columns--------------------------------------------------------------
Col (N=1461) NA% Avg SD … Q0 Q10 Q90 Q100
temp_max 0 16.44 7.35 … -1.6 7.2 26.7 35.6
wind 0 3.24 1.44 … 0.4 1.7 5.2 9.5
# pandas, pyarrow and other narwhals-supported frames work the same way
import pandas as pd
show_stats(pd.read_csv("docs/data/seattle-weather.csv")[["temp_max", "wind"]])
-Numerical columns--------------------------------------------------------------
Col (N=1461) NA% Avg SD Median Min Max
temp_max 0 16.44 7.35 15.6 -1.6 35.6
wind 0 3.24 1.44 3.0 0.4 9.5
-
showstats works with any data frame narwhals supports — polars, pandas, pyarrow and more. They all work directly, with no extra installs or conversion step.
-
Heavily inspired by the great R-packages skimr and modelsummary.
-
Numbers with many digits are automatically converted to scientific notation.
-
The example above uses Seattle daily weather from vega-datasets (BSD-3-Clause).
-
Fast: under a second to summarise a 1,000,000 × 1,000 data frame on an M1 MacBook.
Metadata
Release files for showstats 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| showstats-0.1.0.tar.gz | 299.3 kB | With provenance | Details for showstats-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| showstats-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for showstats-0.1.0-py3-none-any.whl |
Total release size: 310.6 kB
Release files / showstats-0.1.0.tar.gz
| Download URL | showstats-0.1.0.tar.gz |
|---|---|
| Size | 299.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5041af27b514ab1a8088170ab5f1f93be061ca093737b8fd4e20de6dd6ccb113
|
|
BLAKE2b-256 checksum How to use checksums |
64fca3c670d8946040685ced3d23cce60c0d0f700e3fa19f812d0e779b77e6bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency logRelease files / showstats-0.1.0-py3-none-any.whl
| Download URL | showstats-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2463b2e0361786f92f8d87c061f3cc7cffda934b998b8203fd091587e814da06
|
|
BLAKE2b-256 checksum How to use checksums |
d8b7750a9756587cc367eb9cb9304439e25c82087130ed615d106944f7668272
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency logSecurity for showstats 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for showstats-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.