Commands
profile
Profile a CSV, TSV, or Parquet dataset for shape, column types, missingness, summary statistics, and target task inference.
ochreml profile scans a tabular dataset and reports file size, row/column counts, per-column types and statistics, and an optional target summary (^▽^).
Usage
ochreml profile <data> [--target COL] [--max-rows N] [--json]Arguments & Flags
| Argument / Flag | Default | Description |
|---|---|---|
data | required | Path to .csv, .tsv, or .parquet/.pq dataset |
--target | None | Optional target column name for task inference and class/value summary |
--max-rows | None | Optional row cap for fast profiling on large files (sets "truncated": true when reached) |
--json | false | Emit structured JSON output |
Parsing & Type Detection
- Formats:
.csv(comma-delimited) and.tsv(tab-delimited) are parsed with Python stdlibcsv..parquet/.pqfiles are read via optionalpyarrow,polars, orpandas. - Missing tokens: Empty strings and case-insensitive
na,n/a,nan,null,none,inf,-infare counted as missing. - Per-column stats:
numeric:min,max,mean,std,missing_count,missing_pct,n_uniquecategorical:top_values(top 5 values with counts),missing_count,missing_pct,n_uniqueempty: all values missing
- Target summary (when
--targetis passed): infersclassificationvsregressionand reportsclass_distribution(top 20 classes) or numericmin/max/mean/std.
Example
ochreml profile housing.csv --target price --max-rows 5000 --json