aeturrell/skimpy

skimpy is a light weight tool that provides summary statistics about variables in data frames within the console.

What it solves

When you work with data in Python, you often need a quick overview of what's in a dataframe — how many rows, what types of columns, how many missing values, and how the numbers are distributed. The built-in df.describe() in pandas gives only a basic summary. skimpy solves this by providing a much richer, type-aware summary in one command, directly in your console or interactive Python window.

How it works

You call skim(df) on a pandas or Polars dataframe, and skimpy prints a neatly formatted table. It automatically detects each column's data type and shows relevant statistics for that type:

  • Numeric columns: mean, standard deviation, percentiles (0, 25, 50, 75, 100), and a small histogram.
  • Categorical columns: number of unique values and whether they are ordered.
  • Boolean columns: count of true values and the true rate.
  • Datetime/date columns: first and last values, and frequency.
  • Timedelta columns: mean, median, and max duration.
  • String columns: shortest/longest text, characters per row, words per row, and total words.

It also shows the overall dataframe size (rows, columns) and a breakdown of column types. The output is designed to be readable in a terminal or Jupyter-style environment.

Who it’s for

Anyone using pandas or Polars for data analysis in Python — data scientists, analysts, researchers, or students — who wants a fast, comprehensive look at a dataframe without writing multiple lines of code. It's especially useful for exploratory data analysis and quick sanity checks.

Highlights

  • Works with both pandas and Polars dataframes.
  • One-line command: skim(df).
  • Type-aware summaries: different statistics for numeric, categorical, boolean, datetime, timedelta, and string columns.
  • Shows missing values (NA count and percentage) for every column.
  • Includes mini histograms for numeric columns.
  • Lightweight and designed for console or interactive use.
  • Comes with a built-in test dataset (generate_test_data()) to try it out immediately.

Related

  • Project
  • Project
  • Project
  • Project
  • Project