inspect_csv
Analyze CSV files to automatically detect column types and classify them as dimensions or measures for data analysis preparation.
Instructions
Inspect a CSV file and return its inferred schema with column classification.
Reads the CSV, infers column types (integer, float, date, boolean, string), classifies columns as dimensions or measures with semantic types (categorical, temporal, geographic, numeric), and returns a summary.
Args: csv_path: Path to the CSV file. sample_rows: Number of rows to sample for type inference. encoding: File encoding (default utf-8).
Returns: Human-readable schema summary with dimensions, measures, and types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_path | Yes | ||
| sample_rows | No | ||
| encoding | No | utf-8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |