Skip to main content

Lightweight exploratory data analysis for pandas DataFrames

Project description

FramePeek

Lightweight exploratory data analysis for pandas DataFrames.

Documentation

Usage

import framepeek as fp

report = fp.profile(
    df,
    target="churn",
    correlation_method="spearman",
    outlier_multiplier=1.5,
    top_n_categories=5,
)

The report contains overview, columns, missing, duplicates, numeric, categorical, outliers, correlations, target, and warnings.

Each analysis is also available directly:

fp.overview(df)
fp.columns(df)
fp.missing(df)
fp.duplicates(df)
fp.numeric(df)
fp.categorical(df)
fp.outliers(df)
fp.correlations(df)
fp.target(df, target="churn")
fp.warnings(df, target="churn")

All functions validate their inputs and leave the original DataFrame unchanged.

Outputs

Function Return value
overview DataFrame of dataset-level metrics
columns DataFrame with one profile row per column
missing DataFrame; row totals are stored in .attrs["rows"]
duplicates Dictionary containing totals, groups, and examples
numeric DataFrame of descriptive numeric statistics
categorical DataFrame of frequency and cardinality statistics
outliers DataFrame of IQR bounds and potential outlier counts
correlations Dictionary containing matrix and tidy pairs tables
target Dictionary containing categorical or numeric target analysis
warnings DataFrame of actionable quality warnings
profile Dictionary containing all analyses above

Thresholds for missingness, cardinality, outliers, correlations, and class imbalance can be configured through the corresponding function parameters.

Development

python -m pip install -e ".[dev]"
python -m ruff check .
python -m mypy src/framepeek
python -m pytest --cov=framepeek --cov-fail-under=100

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

framepeek-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framepeek-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file framepeek-0.1.0.tar.gz.

File metadata

  • Download URL: framepeek-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for framepeek-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88603ba31c4f9be550f8c2ef22439ef76c1ecd7d4375dc9105aeefad9845bbd4
MD5 10f8a8b702d25d04587fbe827031a4e9
BLAKE2b-256 973a35299b1f6c3e078dc2c1c44ad10e682901bff176b49317867cfeb631bc7e

See more details on using hashes here.

File details

Details for the file framepeek-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: framepeek-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for framepeek-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a33761cce03b905da67bb99a2d4adfc02b7d5f41f8f1868a2dc38bec8b744b
MD5 b6b8ab41bfd1e0139f1486cc342b4000
BLAKE2b-256 0e8a7b91d5c2c3b3cfdf8017ac82b9d7f2993711ce3b39b0f40d30eda174f941

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page