explode
May 31, 2026 · View on GitHub
Explode rows into multiple ones by splitting a column value based on the given separator. The inverse of
implode.
Table of Contents | Source: src/cmd/explode.rs | 🔣👆
Description | Examples | Usage | Explode Options | Common Options
Description ↩
Explodes a row into multiple ones by splitting a column value based on the given separator.
Examples ↩
name,colors
John,blue|yellow
Mary,red
Can be exploded on the "colors"
based on the "|"
qsv explode colors "|" data.csv
name,colors
John,blue
John,yellow
Mary,red
See also https://github.com/dathere/qsv/wiki/Transform-and-Reshape#explode
Usage ↩
qsv explode [options] <column> <separator> [<input>]
qsv explode --help
Explode Options ↩
| Option | Type | Description | Default |
|---|---|---|---|
‑r,‑‑rename | string | New name for the exploded column. |
Common Options ↩
| Option | Type | Description | Default |
|---|---|---|---|
‑h,‑‑help | flag | Display this message | |
‑o,‑‑output | string | Write output to | |
‑n,‑‑no‑headers | flag | When set, the first row will not be interpreted as headers. | |
‑d,‑‑delimiter | string | The field delimiter for reading CSV data. Must be a single character. (default: ,) |
Source: src/cmd/explode.rs
| Table of Contents | README