Vertical summary statistics for data frames
Project description
showstats: quick and compact summary statistics
showstats produces summary statistic tables with vertical orientation.
from showstats import show_stats
show_stats(df)
| Var; N = 100 | Missing | Mean | Median | Std. | Min | Max |
|---------------|--------------|--------------|--------------|-------|--------------|--------------|
| int_col | 0 (0.0%) | 49.5 | 49.5 | 29.01 | 0.0 | 99.0 |
| int_with_miss | 20 (20.0%) | 57.0 | 59.5 | 27.6 | 0.0 | 99.0 |
| ing | | | | | | |
| float_col | 0 (0.0%) | 0.5 | 0.5 | 0.29 | 0.0 | 0.99 |
| float_col_wit | 0 (0.0%) | 2.0 | 2.06 | 0.94 | -0.79 | 4.44 |
| h_mean_2 | | | | | | |
| float_col_wit | 0 (0.0%) | -0.11 | 0.02 | 2.0 | -6.01 | 5.06 |
| h_std_2 | | | | | | |
| float_col_wit | 0 (0.0%) | 9.79 | 9.85 | 0.94 | 7.0 | 12.22 |
| h_min_7 | | | | | | |
| float_col_wit | 0 (0.0%) | 14.56 | 14.62 | 0.94 | 11.78 | 17.0 |
| h_max_17 | | | | | | |
| bool_col | 0 (0.0%) | 0.5 | 0.5 | 0.5 | 0.0 | 1.0 |
| datetime_col | 0 (0.0%) | 2022-01-01 | 2022-01-01 | | 2022-01-01 | 2022-01-01 |
| | | 00:00:49 | 00:00:49 | | 00:00:00 | 00:01:39 |
| datetime_col_ | 0 (0.0%) | 1995-01-01 | 1995-01-01 | | 1995-01-01 | 1995-01-01 |
| 2 | | 00:00:49 | 00:00:49 | | 00:00:00 | 00:01:39 |
| date_col | 0 (0.0%) | | | | 2022-01-01 | 2022-04-10 |
| date_col_2 | 0 (0.0%) | | | | 1500-01-01 | 1500-04-10 |
| str_col | 0 (0.0%) | | | | ABC | foo |
| enum_col | 0 (0.0%) | | | | low | high |
| categorical_c | 0 (0.0%) | | | | low | medium |
| ol | | | | | | |
| null_col | 100 (100.0%) | | | | | |
Primarily built for polars data frames. showstats converts other
inputs, for compatibility with pandas.DataFrames install as
pip install showstats[pandas]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
showstats-0.0.1.tar.gz
(10.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file showstats-0.0.1.tar.gz.
File metadata
- Download URL: showstats-0.0.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c83afaa67d30aab388e7fc0a21257e6c014602a16e8d7fac77f73c627a8fb6ad
|
|
| MD5 |
8a2e0ac14ad6bdbd73f33fd973e57e8b
|
|
| BLAKE2b-256 |
1339ca6ed909369f68d38a35d40186ff4a7e43d15fac635319cb2f3bd3ebf28e
|
File details
Details for the file showstats-0.0.1-py3-none-any.whl.
File metadata
- Download URL: showstats-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637dc4c086d46e03b4ff2518682678b3af0faec525ebae35281a0dc759121c46
|
|
| MD5 |
83181aede150b4ecb11adf72de36b85c
|
|
| BLAKE2b-256 |
7afee992cfa7707d3efabe2a557540ab4035b10238801a21d673af9271ddbe78
|