csv_to_xlsx
Convert CSV/TSV files into new .xlsx workbooks with encoding, delimiter, and type-inference controls, and block overwrites unless explicitly enabled.
Instructions
Convert a CSV/TSV file into a new .xlsx.
encoding: any Python codec: utf-8, utf-8-sig (Excel's BOM), cp1254 (Turkish), cp1252, latin-1, utf-16 ... A wrong encoding is an error, never silently garbled. delimiter: one character or one of comma, semicolon, tab, pipe (Turkish/German Excel exports often use semicolons). infer_types: plain numbers (no leading zeros, at most 15 digits) and ISO dates become real numbers/dates; everything else stays text. Fields starting with '=' always stay text (a CSV is data, not formulas). Set false to store every field as text. Refuses to replace an existing output unless overwrite=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| csv_path | Yes | ||
| encoding | No | utf-8 | |
| delimiter | No | , | |
| overwrite | No | ||
| sheet_name | No | Sheet1 | |
| infer_types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |