Tip
๐ Pointblank: The Complete Guide: A comprehensive (and free!) book on data validation with Pointblank is now being written. Follow along and learn everything from first steps to advanced validation patterns and AI-assisted workflows.
๐ Book chapter progress
Overall: 31% complete โ 14 of 37 chapters have content
Foundations
Intro: โโโโโโโโโโโโโโโ 100%
Getting Started: โโโโโโโโโโโโโโโ 88%
Inspecting Data: โโโโโโโโโโโโโโโ 100%
Validation Workflow: โโโโโโโโโโโโโโโ 100%
Analysis Loop: โโโโโโโโโโโโโโโ 65%
Building Validation Plans
Column Validations: โโโโโโโโโโโโโโโ 100%
Aggregate Validations: โโโโโโโโโโโโโโโ 71%
Row Validations: โโโโโโโโโโโโโโโ 72%
Table Validations: โโโโโโโโโโโโโโโ 100%
Missing Data: โโโโโโโโโโโโโโโ 100%
Segmented Validation: โโโโโโโโโโโโโโโ 75%
Advanced Validation: โโโโโโโโโโโโโโโ 78%
Responding to Results
Thresholds & Actions: โโโโโโโโโโโโโโโ 100%
Reports & Extracts: โโโโโโโโโโโโโโโ 9%
Quality Scoring: โโโโโโโโโโโโโโโ 0%
Notifications & Observability: โโโโโโโโโโโโโโโ 0%
AI-Assisted Validation
Semantic Validation: โโโโโโโโโโโโโโโ 1%
AI Authoring: โโโโโโโโโโโโโโโ 1%
Data Sources, Interfaces & Automation
Data Sources: โโโโโโโโโโโโโโโ 1%
YAML Workflows: โโโโโโโโโโโโโโโ 1%
Command Line: โโโโโโโโโโโโโโโ 1%
MCP Server: โโโโโโโโโโโโโโโ 1%
Data Contracts & Pipelines
Data Contracts: โโโโโโโโโโโโโโโ 1%
Pipelines: โโโโโโโโโโโโโโโ 1%
Test Data Generation
Test Data Generation: โโโโโโโโโโโโโโโ 1%
Clinical & Regulated Data
Clinical & CDISC: โโโโโโโโโโโโโโโ 0%
CDISC Conformance: โโโโโโโโโโโโโโโ 0%
Industry Playbooks
Financial: โโโโโโโโโโโโโโโ 0%
Ecommerce: โโโโโโโโโโโโโโโ 0%
Data Engineering: โโโโโโโโโโโโโโโ 0%
Healthcare: โโโโโโโโโโโโโโโ 0%
Real-World Evidence: โโโโโโโโโโโโโโโ 0%
ML Monitoring: โโโโโโโโโโโโโโโ 0%
IoT Sensors: โโโโโโโโโโโโโโโ 0%
Insurance: โโโโโโโโโโโโโโโ 0%
Public Sector: โโโโโโโโโโโโโโโ 0%
Marketing: โโโโโโโโโโโโโโโ 0%

Data validation toolkit for assessing and monitoring data quality.
Pointblank is a data validation library for Python. You describe what your data should look like in a validation plan, Pointblank checks the data against it, and the results come back as a report that's easy to read and to share. Data quality then becomes something the whole team can discuss, not just a list of errors in a log.
The same plan works on Polars and Pandas DataFrames, on database tables (DuckDB, PostgreSQL, Snowflake, BigQuery, and others), and on PySpark. After a validation, you can look at the failing rows, split the table into the rows that pass and the rows that fail, or act when too many rows fail.
Getting Started
Every validation follows the same pattern: (1) start with Validate, (2) add validation steps, and (3) finish with interrogate().
import pointblank as pb
validation = (
pb.Validate(data=pb.load_dataset(dataset="small_table"))
.col_vals_gt(columns="d", value=100) # Validate values > 100
.col_vals_le(columns="c", value=5) # Validate values <= 5
.col_exists(columns=["date", "date_time"]) # Check columns exist
.interrogate() # Execute and collect results
)
# Get the validation report from the REPL with:
validation.get_tabular_report().show()
# From a notebook simply use:
validation
Once you have an interrogated validation object, you can:
Installation
You can install Pointblank using pip:
You can also install Pointblank from Conda-Forge by using:
conda install conda-forge::pointblank
If you don't have Polars or Pandas installed, you'll need to install one of them to use Pointblank.
pip install "pointblank[pl]" # Install Pointblank with Polars
pip install "pointblank[pd]" # Install Pointblank with Pandas
To validate tables in a database, install Pointblank with the Ibis backend for it (or with PySpark, for Spark DataFrames):
pip install "pointblank[duckdb]" # DuckDB
pip install "pointblank[postgres]" # PostgreSQL
pip install "pointblank[mysql]" # MySQL
pip install "pointblank[sqlite]" # SQLite
pip install "pointblank[mssql]" # SQL Server
pip install "pointblank[snowflake]" # Snowflake
pip install "pointblank[bigquery]" # BigQuery
pip install "pointblank[databricks]" # Databricks
pip install "pointblank[pyspark]" # PySpark
Other extras add optional features, such as generate (for drafting plans with an LLM), mcp (the MCP server), and otel (OpenTelemetry). See the installation guide for more.
Why Pointblank?
- Works with your existing stack: one API for Polars, Pandas, PySpark, DuckDB, PostgreSQL, MySQL, SQLite, SQL Server, Snowflake, BigQuery, Databricks, and files like CSV and Parquet
- Reports to share: validation reports that show what was checked and what failed, for colleagues who don't read code, in 40 languages
- Thresholds and actions: set 'warning', 'error', and 'critical' levels for each step, and run actions (like a Slack message) when they're exceeded
- Results you can use: counts, failing rows, the table split by the results, or a full report
- Runs anywhere: in notebooks, scripts, CI pipelines, scheduled jobs, or from the command line
A Validation for Production
A validation in a production pipeline usually needs more: a name for the table, thresholds, actions when the thresholds are exceeded, and briefs that say what each step checks.
import pointblank as pb
import polars as pl
# Load your data
sales_data = pl.read_csv("sales_data.csv")
validation = (
pb.Validate(
data=sales_data,
tbl_name="sales_data", # Name of the table for reporting
label="Real-world example.", # Label for the validation, appears in reports
thresholds=(0.01, 0.02, 0.05), # Thresholds for warnings, errors, and critical issues
actions=pb.Actions( # An action for any step that exceeds the 'critical' level
critical="Major data quality issue found in step {step} ({time})."
),
final_actions=pb.FinalActions( # An action once the whole validation is done
pb.send_slack_notification(
webhook_url="https://hooks.slack.com/services/your/webhook/url"
)
),
brief=True, # A generated brief for each step
)
.col_vals_between( # Check numeric ranges
columns=["price", "quantity"],
left=0, right=1000
)
.col_vals_not_null( # Ensure that columns ending with '_id' don't have null values
columns=pb.ends_with("_id")
)
.col_vals_regex( # Validate patterns with regex
columns="email",
pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
)
.col_vals_in_set( # Check categorical values
columns="status",
set=["pending", "shipped", "delivered", "returned"]
)
.conjointly( # Combine multiple conditions
lambda df: pb.expr_col("revenue") == pb.expr_col("price") * pb.expr_col("quantity"),
lambda df: pb.expr_col("tax") >= pb.expr_col("revenue") * 0.05
)
.interrogate()
)
Major data quality issue found in step 7 (2025-04-16 15:03:04.685612+00:00).
# Get an HTML report you can share with your team
validation.get_tabular_report().show("browser")