A two-by-two grid
Input
a,b
1,2Output
a,1
b,2The header row becomes the first column.
Detected automatically unless you pick one.
Transposing turns rows into columns and columns into rows. It is what you need when a file arrives with records running horizontally, one row per field rather than one row per record, which most tools cannot read.
This layout is common in exported reports and hand-built spreadsheets, where each metric occupies a row and each period a column.
Each example below is executed against this tool by the test suite, so what you see is what the tool actually produces.
Input
a,b
1,2Output
a,1
b,2The header row becomes the first column.
The details that decide whether a conversion is correct, and where information can be lost without any error being raised.