Skip to Content
OchreML
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 / FlagDefaultDescription
datarequiredPath to .csv, .tsv, or .parquet/.pq dataset
--targetNoneOptional target column name for task inference and class/value summary
--max-rowsNoneOptional row cap for fast profiling on large files (sets "truncated": true when reached)
--jsonfalseEmit structured JSON output

Parsing & Type Detection

  • Formats: .csv (comma-delimited) and .tsv (tab-delimited) are parsed with Python stdlib csv. .parquet/.pq files are read via optional pyarrow, polars, or pandas.
  • Missing tokens: Empty strings and case-insensitive na, n/a, nan, null, none, inf, -inf are counted as missing.
  • Per-column stats:
    • numeric: min, max, mean, std, missing_count, missing_pct, n_unique
    • categorical: top_values (top 5 values with counts), missing_count, missing_pct, n_unique
    • empty: all values missing
  • Target summary (when --target is passed): infers classification vs regression and reports class_distribution (top 20 classes) or numeric min/max/mean/std.

Example

ochreml profile housing.csv --target price --max-rows 5000 --json

On this page