Polars-native data inspection ยท built with Great Tables

X-ray your data.
See everything at a glance.

Polarscope turns a Polars DataFrame or LazyFrame into one beautiful, information-dense table: summary stats, distribution nanoplots, outliers, normality tests and correlations. LazyFrames are streamed, never collected. No Pandas required.

$pip install polarscope

X-ray ยท titanic

156 rows ร— 12 columns ยท 6 shown ยท generated with ps.xray(df, expanded=True)

ColumnTypeMissingDistributionMean
Survived i64
0%
0.35
Pclass i64
0%
2.42
Age f64
19.2%
28.14
Fare f64
0%
28.11
Sex str
0%
2 cats
Embarked str
0.6%
3 cats

Why Polarscope

Everything you need to know your data

One function call. Six kinds of insight. Rendered as a table you'll actually want to look at.

๐ŸŒŠ

LazyFrames, bigger than memory New

Pass pl.scan_parquet(...) or any lazy query straight to xray(). It streams the data instead of collecting it, so memory stays flat however many rows there are. Need exact quartiles? exact=True reads one column at a time, and a built-in memory guard never lets a summary outgrow your machine.

200Mrows
36 sto x-ray
0.9 GBpeak memory

Streaming xray(lf, include="all") on a 12-column Parquet dataset that needs about 19 GB as a DataFrame.

๐Ÿ”ฌ

One-call xray()

Summary statistics for every column by default, or include="all" for mixed types โ€” all in a single inspection table.

๐Ÿ“ˆ

Deep stats, on demand

Flip expanded=True for normality & uniformity tests, outlier metrics, usability flags and correlation details.

๐ŸŒธ

Great Tables output

Beautiful tables with histogram nanoplots and data bars โ€” or pass great_tables=False to get a plain Polars DataFrame.

๐Ÿปโ€โ„๏ธ

Polars-native

Core data handling is implemented entirely in Polars. Fast, typed, and no Pandas required.

๐Ÿงน

Cleaning utilities

clean_column_names, convert_datatypes and drop_missing to tidy frames before you analyze them.

๐Ÿ“Š

Plots & datasets

Correlation, missing-value, distribution and categorical plots โ€” plus built-in titanic and diabetes datasets to play with.

Quick start

Up and running in seconds

Install & x-ray

  • Works with Polars DataFrames and LazyFrames
  • Targeted correlations via corr_target
  • Choose your outlier method: IQR, percentile or z-score
  • Render rich Great Tables or raw Polars output
analysis.py
import polars as pl
import polarscope as ps
from polarscope.datasets import titanic

# load a built-in dataset (or your own)
df = titanic()

# the whole library, in one call
ps.xray(df)

# bigger than memory? pass a LazyFrame, nothing is collected
ps.xray(pl.scan_parquet("events/*.parquet"))

# go deeper: tests, outliers, correlations
ps.xray(
    df,
    expanded=True,
    corr_target="Survived",
    outlier_method="iqr",
)

Give your DataFrames an x-ray

Free, open source and MIT licensed. pip install polarscope