Find data-quality issues in a table, propose fixes as reviewable data, and replay accepted fixes as a recipe. atlas-clean is the successor to the detect-and-repair half of openclean. It starts from an atlas-profiler profile, and it can use autoddg semantic profiles and an LLM, but every detector also works without one.
Status: pre-release (see PLAN.md). Not on PyPI yet.
- Documentation: docs/: concepts, every detector, expectations, fixes and recipes, reviewing, the LLM advisor, the CLI, and generated API and configuration references.
- Tutorials: tutorials/: eight notebooks on a synthetic table with planted problems, saved with their outputs, runnable offline.
openclean was a data profiling and cleaning library from NYU's VIDA lab, last developed in 2021. Its goal was to put scattered cleaning tools in one Python environment: a profiler, operators for spelling variants, outliers, functional-dependency violations and missing values, links to Socrata and a reference-data repository, a small version-control engine for datasets, and extensions for geography, token patterns, Metanome's dependency discovery (through Java) and a spreadsheet UI in the notebook.
Much of that has since moved elsewhere. atlas-profiler profiles tables (types, semantic and spatial types, statistics), autoddg adds semantic descriptions with an LLM, and pandas and polars do the dataframe work that openclean wrapped in its own streams and operators. What had no replacement was the part in between: deciding what is wrong with a table and what to do about it.
atlas-clean is that part, rebuilt rather than ported:
- Kept: openclean's algorithms (fingerprint, n-gram and phonetic keys, kNN clustering, string matching, majority-vote conflict repair, token signatures), with new guards against the false merges they used to make, and openclean's example datasets as the benchmark.
- Changed: cleaning steps become issues and fixes stored as data, reviewed in a notebook widget, and saved as a recipe that replays on next month's file. The recipe replaces the version store.
- New: a profile contract with atlas-profiler, semantic checks from autoddg, and an optional LLM that proposes expectations and judges findings, checked against the data and never allowed to change it.
- Left out: general dataframe operators, the Java dependency-discovery bridge, and the dataset version engine.
docs/from-openclean.md maps each openclean feature to its replacement, with the getting-started example written both ways. PLAN.md records the design decisions and what remains.
The core package reads existing atlas-profiler profiles, runs the deterministic detectors and builds
and replays recipes. Extras add the rest; atlas-profiler and autoddg come from pinned GitHub commits
(see pyproject.toml):
| Extra | Adds | For |
|---|---|---|
geo |
geopandas, shapely, pyproj, pyarrow | GeoJSON, GeoPackage and GeoParquet files |
profile |
atlas-profiler (installs PyTorch) | computing a profile (run_profile, a session without one) |
llm |
autoddg | the LLM advisor and semantic checks |
all |
all of the above |
git clone https://github.com/VIDA-NYU/atlas-clean.git
cd atlas-clean
uv sync --all-extras # or pick: --extra geo --extra profile --extra llm
./scripts/check.sh # ruff + pytest (with every extra)An application that only checks data and replays recipes against profiles it already has can
install atlas-clean[geo] alone (UrbanTrace does).
Spatial data: latitude/longitude column pairs are checked with the core package; GeoJSON,
GeoPackage and GeoParquet files need the optional atlas-clean[geo] extra. Give an extent so
swapped coordinates and mislabelled CRSs can be found:
session = CleaningSession("schools.geojson", extent=(-74.26, 40.49, -73.69, 40.92))See examples/quick_start.ipynb for a one-page version on openclean's misspellings file, or the tutorials for the full tour.
from atlas_clean import CleaningSession, Expectation
session = CleaningSession("parking_violations.csv") # profiles the table with atlas-profiler
issues = session.detect() # twenty detectors
session.issues_frame() # one row per issue
session.propose() # fixes as data, status "proposed"
session.review() # interactive widget: accept, reject,
# edit mappings, merge/split, preview
session.accept_all(source="rule", min_confidence=0.9) # or decide in code
recipe = session.recipe()
recipe.save("parking.recipe.json")
result = recipe.apply("parking_violations_next_month.csv", out="clean.parquet")
print(result.summary()) # rows changed per fix, unseen values
session.report().save("review.html") # read-only page to shareKnown value sets, ranges or rules can be passed in:
boroughs = ["BRONX", "BROOKLYN", "MANHATTAN", "QUEENS", "STATEN ISLAND"]
session = CleaningSession(
"data.csv", expectations=[Expectation("Borough", "value_set", {"values": boroughs})]
)Any autoddg client works: an OpenAI client, ClaudeCodeClient(), CodexClient() or
LocalLLMClient. Replies are cached on disk in .atlas_clean_cache/.
from autoddg import ClaudeCodeClient
session = CleaningSession("data.csv", llm_client=ClaudeCodeClient(), llm_model="claude-sonnet-5-5")The LLM never changes data. It adds the autoddg semantic profile, proposes expectations (value sets, formats, ranges, dependencies), judges spelling clusters and flagged values, flags values that contradict a column's meaning, and suggests corrections. Every suggestion is checked against the data: an expectation that would flag more than 30% of rows becomes a question, values the LLM names must exist in the column, and a correction whose target is not an existing or expected value is marked ungrounded with low confidence.
atlas-clean detect data.csv --out issues.json [--propose] [--fail-on error]
atlas-clean propose data.csv --out recipe.json --min-confidence 0.9
atlas-clean report data.csv --out review.html [--recipe recipe.json]
atlas-clean apply data.csv --recipe recipe.json --out clean.parquet [--log log.json]Common options: --profile p.json, --expectations exp.json, --detectors a,b,
--llm claude-code:claude-sonnet-5-5 (or openai:..., codex:...).
| Detector | Finds | Fix proposed |
|---|---|---|
missing_disguised |
N/A, -, unknown, 1900-01-01, numeric codes like 0 or 999 that spike apart from the data |
set_null |
type_mismatch |
values that do not parse as the column's type (numbers, booleans, dates) | cast |
semantic_mismatch |
values that contradict the column's meaning, from its name (zip, year, lat/lon, email, phone, URL, date) or the semantic profile | flag_rows |
variant_spelling |
clusters of spellings of one value (fingerprint, n-gram, address and phonetic keys, kNN) | map_values per cluster |
numeric_outlier |
numbers far from the bulk (robust z-score) | flag_rows |
pattern_outlier |
values in a rare format when most share one or two | flag_rows |
rare_value |
categories seen only a handful of times | flag_rows |
domain_violation |
values outside an expected value set or range | map_values to the closest allowed value, else flag_rows |
dependency_violation |
rows breaking a rule that holds almost everywhere (zip -> borough) | resolve_conflict (vote, needs review) |
Thresholds live in DetectConfig. Placeholders are reported once, by missing_disguised;
the other detectors skip them.
Fixes are data from a closed set of actions: map_values, set_null, cast, normalize,
resolve_conflict, flag_rows. None deletes rows. A recipe stores the accepted fixes in a safe
order, the column names it expects, and the distinct values of mapped columns, so a replay fails
on missing columns and reports values it has never seen. Replays are idempotent.
uv run python benchmarks/run.py injects errors into the openclean example tables and measures
detection and repair. Latest results: benchmarks/results/README.md.
src/atlas_clean/
session.py CleaningSession
model.py Expectation, Issue, Fix, Recipe
profile.py atlas-profiler loading and schema check
detectors/ twenty detectors (eleven spatial) and the registry
fixers/ issue -> fixes
algorithms/ clustering, keys, normalizers, patterns, parsing (ported from openclean)
actions.py fix actions on polars
apply.py recipes and replay
llm/ optional advisor (autoddg clients, prompts, cache)
review/ anywidget review widget, HTML export
schemas/ draft atlas-profiler profile schema
cli.py
docs/ guides and generated references (tools/gen_docs.py)
tutorials/ notebooks, tutorial_data.py, diagrams.py
tools/ build_tutorials.py, run_tutorials.py, gen_docs.py, widget_preview.py
benchmarks/ error injection and results
MIT. Copyright (c) 2026 Claudio Silva and New York University. Developed by the OSCUR team at VIDA-NYU.
atlas-clean is part of OSCUR, the Open-Source Cyberinfrastructure for Urban Computing project, supported by the National Science Foundation under Awards #2411221, #2411222 and #2411223. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.