In the middle of 2025 we published a survey of data validation libraries for Polars, comparing five Python packages that could check a Polars DataFrame against a set of expectations. A year and a half later, enough has changed to make a second look worthwhile. Polars is now at v2.2, following the v2.0 release in October 2026. All five libraries from the first survey have had new releases, and two of them have moved up a major version. Several newer libraries have also appeared, and some of them take approaches we didn’t see at all the first time around: validation through function decorators, schemas written as typing.Protocol classes, and a single schema that both validates data and generates it.

This edition covers nine libraries. The five returning ones are Pandera, Patito, Pointblank, Validoopsie, and Dataframely, and the four newcomers are Daffy, checkedframe, Pavise, and polspec. We’ll run every one of them against the same small table we used in 2025, so you can compare the examples with each other and with the earlier edition. One thing kept coming up as we looked at them: more and more of these libraries use Narwhals, a compatibility layer that lets the same code work with Polars, Pandas, PyArrow, and several other DataFrame libraries. That trend gets a section of its own near the end.

As in 2025, Great Expectations is not included here. It remains one of the most established validation frameworks in the Python ecosystem, but it still doesn’t offer native Polars support (the issue proposing Narwhals as a route to it remains open).

The Libraries at a Glance#

The table below summarizes the nine libraries. The star counts are from GitHub at the end of November 2026 and are only meant to give a rough sense of how well known each project is. Several of the smaller projects here are well made and actively maintained, and a low count often says more about a library’s age than about its quality.

Library Version ⭐ Approach DataFrames
Returning from 2025
Pandera 0.36.0 4,542 Schema objects or class-based models Polars, Pandas, PyArrow, Ibis, PySpark, DataFusion
Patito 0.8.6 644 Pydantic-style models Polars
Pointblank 1.3.0 506 Chained validation steps with reports Polars, Pandas, PySpark, DuckDB and other databases
Validoopsie 1.8.1 91 Chained checks with impact levels Anything Narwhals supports
Dataframely 3.1.3 630 Polars-native schema classes Polars
New in This Edition
Daffy 3.3.0 60 Decorators on functions Polars, Pandas, Modin, PyArrow
checkedframe 0.1.0 18 Schema classes with flexible custom checks Polars, Pandas, Modin, PyArrow, cuDF
Pavise 0.3.2 5 Schemas as typing.Protocol classes Polars, Pandas
polspec 2.1.0 2 One schema to validate and generate data Polars 2

The Test Case#

To keep the comparison fair, every library in this survey validates the same Polars DataFrame. It’s the table from the 2025 edition, unchanged: five users, each with an ID, an age, an email address, and a score. Two of its rows have deliberate problems. The fifth user is 95 years old, which is outside the age range we’ll allow, and the third user’s email address isn’t an email address at all.

import polars as pl

user_data = pl.DataFrame({
    "user_id": [1, 2, 3, 4, 5],
    "age": [25, 30, 22, 45, 95],  # <- includes a very high age
    "email": [
        "user1@example.com", "user2@example.com", "invalid-email",  # <- has an invalid email
        "user4@example.com", "user5@example.com"
    ],
    "score": [85.5, 92.0, 78.3, 88.7, 95.2]
})

Each library will check the same five things. The columns should have the expected types (integers for the ID and age, a string for the email, a float for the score). Every user_id should be greater than zero, every age should be between 18 and 80, every email should match a simple email pattern, and every score should be between 0 and 100. There are exactly two problems to find. What makes the comparison interesting is how differently each one finds those problems, reports them, and lets you deal with them.

Pandera#

Pandera is the oldest and most widely used library in this survey, and it keeps getting broader. Polars support arrived in early 2024, and since the last survey the project has added a Narwhals-based backend (v0.32.0, June 2026), first-class validation of PyArrow tables (v0.33.0), and support for Apache DataFusion (v0.35.0). The Narwhals backend lets Pandera’s Polars, Ibis, and PySpark schemas share one implementation instead of maintaining three, which makes it clear that working across DataFrame libraries is a priority for the project.

The schema itself looks just as it did in 2025. Each column gets a type and a list of checks, and you apply the schema to the data with validate():

import pandera.polars as pa

schema = pa.DataFrameSchema({
    "user_id": pa.Column(pl.Int64, checks=pa.Check.gt(0)),
    "age": pa.Column(pl.Int64, checks=[pa.Check.ge(18), pa.Check.le(80)]),
    "email": pa.Column(pl.String, checks=pa.Check.str_matches(r"^[^@]+@[^@]+\.[^@]+$")),
    "score": pa.Column(pl.Float64, checks=pa.Check.in_range(0, 100))
})

try:
    schema.validate(user_data, lazy=True)
except pa.errors.SchemaErrors as e:
    print(e.failure_cases)
shape: (2, 6)
┌───────────────┬────────────────┬────────┬─────────────────────────────────┬──────────────┬───────┐
│ failure_case  ┆ schema_context ┆ column ┆ check                           ┆ check_number ┆ index │
│ ---           ┆ ---            ┆ ---    ┆ ---                             ┆ ---          ┆ ---   │
│ str           ┆ str            ┆ str    ┆ str                             ┆ i32          ┆ i32   │
╞═══════════════╪════════════════╪════════╪═════════════════════════════════╪══════════════╪═══════╡
│ 95            ┆ Column         ┆ age    ┆ less_than_or_equal_to(80)       ┆ 1            ┆ 4     │
│ invalid-email ┆ Column         ┆ email  ┆ str_matches('^[^@]+@[^@]+\.[^@… ┆ 0            ┆ 2     │
└───────────────┴────────────────┴────────┴─────────────────────────────────┴──────────────┴───────┘

We need to correct something we said in 2025. We wrote then that Pandera stops at the first failure, and while that is its default behavior, passing lazy=True makes it run every check and collect all of the failures before raising (lazy here means holding back the error until every check has run). The result is the table above, a Polars DataFrame of failure cases with the offending value, the column, the check that failed, and the row index. Because the failures are themselves data, you can filter them, join them back to the original table, or write them to a log with the tools you already use.

What still sets Pandera apart is its statistical checks. A schema can include hypothesis tests (a two-sample t-test between groups, for instance), which makes it a good fit for data science work where the distribution of a column matters as much as its individual values. It also offers a class-based DataFrameModel API that works with static type checkers, so the same schema can describe a function’s inputs and outputs as well as validate them at runtime.

Patito#

Patito brings the model-based style of Pydantic to DataFrames. A schema is a class, each column is an annotated attribute, and constraints use the same Field syntax that Pydantic users already know:

import patito as pt
from typing import Annotated

class UserModel(pt.Model):
    user_id: int = pt.Field(gt=0)
    age: Annotated[int, pt.Field(ge=18, le=80)]
    email: str = pt.Field(pattern=r"^[^@]+@[^@]+\.[^@]+$")
    score: float = pt.Field(ge=0.0, le=100.0)

try:
    UserModel.validate(user_data)
except pt.exceptions.DataFrameValidationError as e:
    print(e)
2 validation errors for UserModel
age
  1 row with out of bound values. (type=value_error.rowvalue)
email
  1 row with out of bound values. (type=value_error.rowvalue)

Patito reports every failure in a single pass, grouped by column, and its messages read like Pydantic’s own. The library has changed less than the others since 2025 (its most recent release, v0.8.6, came out in February), which makes sense for a tool that already does what it sets out to do. It’s still Polars-only, and it still has its most distinctive feature: you can turn the rows of a validated DataFrame into instances of the model, complete with any methods or properties you define on the class. That’s handy in applications that already use Pydantic and need to treat the same records both as a table and as objects. Its .examples() method, which generates valid test data from a model, is also worth knowing about.

Pointblank#

Pointblank, which we develop at Posit, treats validation as a series of steps and collects the results into a report. Each step is a method on a Validate object, thresholds decide how many failing rows trigger a warning, an error, or a critical state, and interrogate() runs the whole plan:

import pointblank as pb

schema = pb.Schema(
    columns=[("user_id", "Int64"), ("age", "Int64"), ("email", "String"), ("score", "Float64")]
)

validation = (
    pb.Validate(data=user_data, label="An example.", tbl_name="users", thresholds=(0.1, 0.2, 0.3))
    .col_vals_gt(columns="user_id", value=0)
    .col_vals_between(columns="age", left=18, right=80)
    .col_vals_regex(columns="email", pattern=r"^[^@]+@[^@]+\.[^@]+$")
    .col_vals_between(columns="score", left=0, right=100)
    .col_schema_match(schema=schema)
    .interrogate()
)

validation
Pointblank Validation
An example.
PolarsusersWARNING0.1ERROR0.2CRITICAL0.3
STEP COLUMNS VALUES TBL EVAL UNITS PASS FAIL W E C EXT
#4CA64C 1
col_vals_gt
col_vals_gt()
user_id 0 ✓ 5 5
1.00
0
0.00
○ ○ ○ —
#EBBC14 2
col_vals_between
col_vals_between()
age [18, 80] ✓ 5 4
0.80
1
0.20
● ● ○
#EBBC14 3
col_vals_regex
col_vals_regex()
email ^[^@]+@[^@]+\.[^@]+$ ✓ 5 4
0.80
1
0.20
● ● ○
#4CA64C 4
col_vals_between
col_vals_between()
score [0, 100] ✓ 5 5
1.00
0
0.00
○ ○ ○ —
#4CA64C 5
col_schema_match
col_schema_match()
— SCHEMA ✓ 1 1
1.00
0
0.00
○ ○ ○ —
2026-11-30 17:41:07 UTC< 1 s2026-11-30 17:41:07 UTC

Notes

Step 5 (schema_check) ✓ Schema validation passed.

Schema Comparison
TABLE SCHEMA
COLUMN DATA TYPE COLUMN DATA TYPE
1 user_id Int64 1 user_id ✓ Int64 ✓
2 age Int64 2 age ✓ Int64 ✓
3 email String 3 email ✓ String ✓
4 score Float64 4 score ✓ Float64 ✓
Supplied Column Schema:
[('user_id', 'Int64'), ('age', 'Int64'), ('email', 'String'), ('score', 'Float64')]
Schema Match Settings
COMPLETE
IN ORDER
COLUMN ≠ column
DTYPE ≠ dtype
float ≠ float64

The report shows each step with its pass and fail counts and the threshold levels it reached, and you can share it with people who will never read the validation code. A lot has happened since the last survey, and the library reached v1.0.0 in October 2026. New features include composable validation steps (a Steps object that lets you write checks once and reuse them across plans), referential integrity checks with col_vals_in_table(), table comparison with pb.compare(), schema inference, and synthetic data generation from a schema. Pointblank uses Narwhals and Ibis, so the same plan can run against Polars, Pandas, PySpark, or a database table.

Pointblank is a good fit when you need to communicate validation results as well as enforce them, and when you’re willing to accept some failures. With thresholds, you can tolerate a small share of bad rows and tighten the standard over time.

Validoopsie#

Validoopsie sorts its checks into namespaces (values, strings, nulls, dates, types, and so on) and chains them together much like Great Expectations does, but it’s a far smaller library. It has used Narwhals from the start, so it works with any DataFrame library Narwhals supports. Its most interesting idea is the impact level. Each check is marked "low", "medium", or "high", and a failing "high" check raises an exception, while the others are logged at different severities. Combined with a threshold= for the share of rows allowed to fail, this lets you decide exactly how a pipeline should react when the data isn’t perfect.

Validoopsie logs its results through loguru. The first two lines below shorten that output so it fits on the page:

import sys
from loguru import logger
from validoopsie import Validate
from narwhals.dtypes import Int64, Float64, String

logger.remove()
logger.add(sys.stdout, level="WARNING", format="{level}: {message}")

validation = (
    Validate(user_data)
    .ValuesValidation.ColumnValuesToBeBetween(column="user_id", min_value=0, impact="high")
    .ValuesValidation.ColumnValuesToBeBetween(
        column="age", min_value=18, max_value=80, threshold=0.1, impact="medium"
    )
    .StringValidation.PatternMatch(
        column="email", pattern=r"^[^@]+@[^@]+\.[^@]+$", threshold=0.05, impact="low"
    )
    .ValuesValidation.ColumnValuesToBeBetween(column="score", min_value=0, max_value=100)
    .TypeValidation.TypeCheck(
        frame_schema_definition={"user_id": Int64, "age": Int64, "email": String, "score": Float64},
        impact="high"
    )
)

validation.validate()
validation.results["Summary"]
ERROR: Failed validation: ColumnValuesToBeBetween_age - The column 'age' has values that are not between 18 and 80.
WARNING: Failed validation: PatternMatch_email - The column 'email' has entries that do not match the pattern '^[^@]+@[^@]+\.[^@]+$'.

{'passed': False,
 'validations': ['ColumnValuesToBeBetween_user_id',
  'ColumnValuesToBeBetween_age',
  'PatternMatch_email',
  'ColumnValuesToBeBetween_score',
  'TypeCheck_DataTypeColumnValidation'],
 'failed_validation': ['ColumnValuesToBeBetween_age', 'PatternMatch_email']}

The failing age check was marked "medium" and is logged as an error, while the failing email check was marked "low" and is logged as a warning. Neither stops the pipeline, because the only "high" checks (the ID range and the column types) passed. The full results dictionary records each check’s status, threshold, failing values, and failure percentage, so it’s easy to send along to a monitoring system. Validoopsie works well in production pipelines where you want to keep a close eye on data quality without letting one bad batch stop everything.

Dataframely#

Dataframely, from QuantCo, is a Polars-native library that has been through two major versions since the last survey. Version 2 (October 2025) made columns non-nullable by default and introduced lazy validation, where lazy is meant in the Polars sense: the checks become part of a LazyFrame query and only run when it’s collected. Version 3 (July 2026) went further with a “lazy in, lazy out” design in which a LazyFrame passed to validate() returns a LazyFrame. It also replaced group rules (rules evaluated separately for each group of rows) with Polars window expressions using over(), and trimmed its I/O layer to focus on validation itself. Here’s the schema for our test table:

import dataframely as dy

class UserSchema(dy.Schema):
    user_id = dy.Int64(primary_key=True, min=1)
    age = dy.Int64()
    email = dy.String(regex=r"^[^@]+@[^@]+\.[^@]+$")
    score = dy.Float64(min=0.0, max=100.0)

    @dy.rule()
    def age_in_range(cls) -> pl.Expr:
        return pl.col("age").is_between(18, 80, closed="both")

try:
    UserSchema.validate(user_data)
except dy.exc.ValidationError as e:
    print(e)
2 rules failed validation:
 - 'age_in_range' failed for 1 rows
 * Column 'email' failed validation for 1 rules:
   - 'regex' failed for 1 rows

The age range could have been set with min and max, as score is, but we wrote it as a custom rule to show how rules work. Rules written with @dy.rule() are ordinary Polars expressions, so anything Polars can compute can become a constraint. Dataframely’s most useful feature for production work is soft validation. Instead of raising, filter() splits the data into the rows that passed and a record of the rows that didn’t:

good_data, failures = UserSchema.filter(user_data)

print(f"Valid rows: {len(good_data)}")
print(failures.counts())
print(failures.invalid())
Valid rows: 3
{'age_in_range': 1, 'email|regex': 1}
shape: (2, 4)
┌─────────┬─────┬───────────────────┬───────┐
│ user_id ┆ age ┆ email             ┆ score │
│ ---     ┆ --- ┆ ---               ┆ ---   │
│ i64     ┆ i64 ┆ str               ┆ f64   │
╞═════════╪═════╪═══════════════════╪═══════╡
│ 3       ┆ 22  ┆ invalid-email     ┆ 78.3  │
│ 5       ┆ 95  ┆ user5@example.com ┆ 95.2  │
└─────────┴─────┴───────────────────┴───────┘

The failure object can count failures by rule, show which rules tend to fail together, and return the invalid rows themselves. Dataframely can also validate collections of related DataFrames (checking, for example, that every order refers to an existing customer), and its schemas work with static type checkers. It’s a good choice for data engineering work on Polars, where the relationships between tables matter as much as what’s in each one.

Daffy#

Daffy is the oldest of the newcomers (its repository dates from 2021), but it reached v1.0.0 in November 2025 and has moved quickly since, going through two more major versions in under a year. It works differently from every other library here. Rather than validating a DataFrame wherever you call a method, Daffy validates the DataFrames that go into and come out of a function, using the decorators @df_in and @df_out. That puts the checks right where data passes from one step of a pipeline to the next, which is often where a mismatch first causes trouble.

from daffy import df_in

@df_in({
    "user_id": {"dtype": "Int64", "checks": {"gt": 0}},
    "age": {"dtype": "Int64", "checks": {"between": (18, 80)}},
    "email": {"dtype": "String", "checks": {"str_regex": r"^[^@]+@[^@]+\.[^@]+$"}},
    "score": {"dtype": "Float64", "checks": {"between": (0, 100)}},
})
def mean_score(df):
    return df["score"].mean()

try:
    mean_score(user_data)
except AssertionError as e:
    print(e)
Check violations in function 'mean_score' parameter 'df':
  Column 'age' failed between: 1 values. Examples: [95]
  Column 'email' failed str_regex: 1 values. Examples: ['invalid-email']

The function never runs, because its input fails two checks, and the message names the function, the parameter, and some of the failing values. In its simplest form, @df_in(["user_id", "email"]) only confirms that the columns exist, which is cheap and catches more real bugs than you might expect. Daffy also supports regex patterns for matching column names, uniqueness and nullability constraints, and row-level validation through a Pydantic model for checks that span several fields. It uses Narwhals and works with Polars, Pandas, Modin, and PyArrow. Daffy is also the easiest library here to adopt a little at a time, since you can add a decorator to one function without touching anything else.

checkedframe#

checkedframe is a lightweight library that has used Narwhals from the start. Its author wanted it to work with any DataFrame library and to stay independent of Pydantic. A schema is a class whose attributes are column types, and you can add checks with built-in helpers or write your own as decorated methods that take a Series, an expression, or a whole DataFrame, depending on what the check needs:

import checkedframe as cf

class UserSchema(cf.Schema):
    user_id = cf.Int64(checks=[cf.Check.gt(0)])
    age = cf.Int64(checks=[cf.Check.is_between(18, 80)])
    email = cf.String(checks=[cf.Check.str_contains(r"^[^@]+@[^@]+\.[^@]+$")])
    score = cf.Float64(checks=[cf.Check.is_between(0, 100)])

try:
    UserSchema.validate(user_data)
except cf.exceptions.SchemaError as e:
    print(e)
Found 2 error(s)
  age: 1 error(s)
    - is_between failed for 1 / 5 (20.00%) rows: Must be in range [18, 80]
  email: 1 error(s)
    - contains failed for 1 / 5 (20.00%) rows: Must contain ^[^@]+@[^@]+\.[^@]+$

Despite its name, cf.Check.str_contains() takes a regular expression, and the ^ and $ anchors make it a full match (hence the “Must contain” wording in the message). The error message reports every failure along with the share of rows affected. Since checkedframe isn’t tied to one DataFrame library, the same schema works on a Pandas version of the table without any changes:

try:
    UserSchema.validate(user_data.to_pandas())
except cf.exceptions.SchemaError as e:
    print(e)
Found 2 error(s)
  age: 1 error(s)
    - is_between failed for 1 / 5 (20.00%) rows: Must be in range [18, 80]
  email: 1 error(s)
    - contains failed for 1 / 5 (20.00%) rows: Must contain ^[^@]+@[^@]+\.[^@]+$

checkedframe also has a filter() method that keeps only the passing rows, safe casting that won’t make a conversion if it would lose information, and schema generation from existing data. The project has had a single release so far (v0.1.0, September 2025), so it’s still young, but its design is clear and it makes good use of Narwhals.

Pavise#

Pavise starts from Python’s type system. A schema is a plain typing.Protocol class, written without any base class or special syntax beyond typing.Annotated. Wrapping a DataFrame as DataFrame[UserSchema] validates it at runtime, and the same annotation lets mypy or pyright check that each function receives the right kind of DataFrame:

from typing import Annotated, Protocol
from pavise.polars import DataFrame
from pavise.exceptions import ValidationError
from pavise.validators import Gt, Range, Regex

class UserSchema(Protocol):
    user_id: Annotated[int, Gt(0)]
    age: Annotated[int, Range(18, 80)]
    email: Annotated[str, Regex(r"^[^@]+@[^@]+\.[^@]+$")]
    score: Annotated[float, Range(0, 100)]

try:
    DataFrame[UserSchema](user_data)
except ValidationError as e:
    print(e)
Column 'age': values must be in range [18, 80]

Sample invalid values (showing first 1 of 1):
  Row 4: 95

Pavise reports only the age problem here, because it stops at the first failing column (that’s on purpose). Pavise is meant to guard the edges of a system (where a file is read or a database is queried), and there it’s better to fail quickly with a clear message. Because it uses Protocols, it gets structural subtyping for free: a DataFrame with extra columns still satisfies a schema that doesn’t mention them, and a DataFrame validated against a more specific schema (DataFrame[Child], where the Child Protocol extends Parent) is accepted wherever a DataFrame[Parent] is expected. The same schema works with Pandas if you import DataFrame from pavise.pandas instead of pavise.polars, and it also handles Polars LazyFrame objects. Pavise is a recent project (created at the start of 2026), and it’s most likely to appeal to people who rely a lot on static type checking.

polspec#

polspec is the newest library here, created in September 2026, and it requires Polars 2. It tries to solve a common problem: the schema that validates production data and the fixtures used in tests are usually written separately, and over time they drift apart. A polspec schema does both jobs. Each column gets a type and its constraints, and the resulting class can both validate a DataFrame and generate one:

from polspec import ColSpec, FrameSpec

class Users(FrameSpec):
    user_id = ColSpec(pl.Int64, bounds=(1, 10**9), unique=True)
    age = ColSpec(pl.Int64, bounds=(18, 80))
    email = ColSpec(pl.String, format="email")
    score = ColSpec(pl.Float64, bounds=(0, 100))

print(Users.inspect(user_data))
Validation failed for DataFrame against 'Users' (2 error(s) found):
  - Column 'age': found 1 value(s) out of bounds [18, 80] (min found: 22, max found: 95). Out of bounds samples: [95] (20.0% of rows)
  - Column 'email': found 1 value(s) that are not email (an address with one '@' and a dotted domain). Invalid samples: ['invalid-email'] (20.0% of rows)

The inspect() method returns every finding at once as a report, including the observed range of the out-of-bounds column and the share of rows affected (validate() raises an error with the same information). To generate data, you use the same class:

print(Users.generate(5, seed=23))
shape: (5, 4)
┌───────────┬─────┬──────────────────────────┬───────────┐
│ user_id   ┆ age ┆ email                    ┆ score     │
│ ---       ┆ --- ┆ ---                      ┆ ---       │
│ i64       ┆ i64 ┆ str                      ┆ f64       │
╞═══════════╪═════╪══════════════════════════╪═══════════╡
│ 666943414 ┆ 50  ┆ io5m@fqknrcbg.net        ┆ 79.733203 │
│ 771953561 ┆ 72  ┆ 84lw7@dwztxk.org         ┆ 60.065361 │
│ 350612632 ┆ 73  ┆ qh6n@nlxr.edu            ┆ 31.814339 │
│ 404870690 ┆ 55  ┆ mdy@hwkvui.edu           ┆ 45.145386 │
│ 255323833 ┆ 51  ┆ mphvn32cu@aozwwjejdq.org ┆ 31.607739 │
└───────────┴─────┴──────────────────────────┴───────────┘

Every generated row satisfies the declared constraints, and a fixed seed gives you the same data on every platform. polspec can do more than this example shows. It can profile an existing table to produce a starting schema, generate related tables with consistent foreign keys, report statistically significant drift between two datasets, and run from the command line in CI. Pointblank and Dataframely can also generate data from schemas, but polspec is the one that puts generation and validation together at its center.

The Growing Role of Narwhals#

The biggest change since 2025 is how many of these libraries now use Narwhals. Narwhals offers a subset of the Polars API that works with many DataFrame libraries, translating each operation into whatever the underlying library understands. In the first survey, Pointblank and Validoopsie were the only libraries that used it. Since then, Pandera has added a Narwhals backend, Daffy has adopted it, and checkedframe was built on it from the beginning. For a validation library this is an appealing setup. You write the checks once, in a familiar expression-based style, and they work on Polars, Pandas, PyArrow, and in some cases database tables.

The libraries that are still Polars-only (Patito, Dataframely, and polspec) have made a different choice, and it’s just as reasonable. By committing to one library, they can expose Polars expressions directly in their rules, follow Polars’ lazy execution model closely, and pick up new Polars features as soon as they appear. polspec’s decision to require Polars 2 is the clearest example. Rather than asking which approach is better, it may help to ask which one fits your situation. If all of your data is in Polars, tight integration may matter most. If you move between Pandas, Polars, and a warehouse, a single API that works across all of them may be more useful.

Choosing a Library#

With nine libraries to choose from, a few questions can help narrow things down. The first is what tools you already use. If you already use Pydantic, Patito will feel natural, and if you rely on static type checking, Pandera, Dataframely, and Pavise are worth a look. If your DataFrames move between several libraries, checkedframe, Daffy, Validoopsie, Pointblank, and Pandera’s Narwhals backend all save you from writing the same checks twice.

The second question is where validation should happen. Daffy puts it at the boundary of every function, Pavise at the boundary of the system, and the other libraries wherever you call them. The third is what should happen when something fails. Most of these libraries report every failure at once (Pandera does so when you ask with lazy=True), while Pavise deliberately stops at the first. Pandera (with drop_invalid_rows=True), Pointblank (with get_sundered_data()), Dataframely, checkedframe, and polspec can also separate good rows from bad ones, so a pipeline can carry on with the clean data and set the rest aside. Pointblank and Validoopsie let you accept a certain share of failures through thresholds, so validation becomes a measure of quality you can track and improve over time, not just a pass or fail.

Use Case Libraries to Consider
Type-safe pipelines Pandera, Dataframely, Pavise
Stakeholder reporting Pointblank
Pydantic-based applications Patito
Statistical validation Pandera
Gradual quality improvement Pointblank, Validoopsie
Validation at function boundaries Daffy
Working across DataFrame libraries checkedframe, Daffy, Pointblank, Validoopsie, Pandera
Test fixtures that match the schema polspec, Dataframely, Pointblank, Patito

One newer consideration is how well a library supports coding agents. Writing a full set of checks by hand can be tedious, and an agent that knows a library’s API can draft a first version from a description of the data, leaving you to review and adjust it. A few of these projects now publish material for exactly this purpose. Dataframely provides an agent skill along with a guide to working with coding agents. Pointblank ships several skills (for writing validations, defining data contracts, and generating test data, among other tasks) and an MCP server. polspec publishes an llms.txt file that gives a language model its complete documentation in one place. Schema-based libraries have something of an advantage here regardless, since a schema is a compact description of the data that is easy for an agent to read, write, and check against the real thing.

Finally, these libraries work well together. A pipeline might use Daffy decorators on its transformation functions, Dataframely or Pandera schemas at its main stages, and a Pointblank report for the people downstream who need to know whether they can trust the data. A good way to start is with whichever library fits your most pressing need, adding others as your requirements grow.

Wrapping Up#

The Python ecosystem for validating Polars DataFrames is in better shape than it was eighteen months ago. The established libraries have matured and broadened their reach, and the newer ones bring some genuinely new ideas: decorators that check data at function boundaries, schemas that double as type annotations, and schemas that generate the data they describe. Every library in this survey found trouble in our small table (Pavise, by design, stopped at the first problem). Where they differ is in how the checks are written (in a schema, a chain of steps, or a function decorator), what happens when something fails (an exception, a log entry, a filtered table, or a report), and how many DataFrame libraries they work with.

This survey reflects what we know about these libraries at the end of 2026, and things move fast enough that some details will soon be out of date. The links in the table at the top of this post lead to each project’s repository, which is the best place to find current documentation, ask questions, or report problems. If one of these libraries caught your interest, try it on a table of your own. The small example above only takes a few minutes to adapt, and it’s a good way to get a feel for how a library works before you commit to it.