Vertical summary statistics for data frames
Project description
dfstats: quick and compact summary statistics
dfstats produces summary statistic tables with vertical orientation.
from dfstats 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. dfstats converts other
inputs, for compatibility with pandas.DataFrames install as
pip install dfstats[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
dfstats-0.0.1.tar.gz
(10.2 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 dfstats-0.0.1.tar.gz.
File metadata
- Download URL: dfstats-0.0.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0b46c6e01eff279bd30227494ffca7fccc535ace646f796e2e2fd261dc71aef
|
|
| MD5 |
8faca960ef59c2e7b04a282fb8440c63
|
|
| BLAKE2b-256 |
84133a3bbe78a54cfed9eb28403ce88b8cc2f6c3717c445cad776d92f6043812
|
File details
Details for the file dfstats-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dfstats-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.3 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 |
b40ec489914cefdfeb0ff0c40404bb91c01511b0632cf9f75f1613722d7a7f8d
|
|
| MD5 |
646a40c78c036a2ba1aaf870696cd9c8
|
|
| BLAKE2b-256 |
f953a71e0bd6299080f9454ada303a75779edc36691a0a61b54d4b88737969fa
|