Catalog/data-transform-transpose

Data Transform

Transpose matrix API

Transposes a 2D matrix, swapping rows and columns, and reports the resulting dimensions. Answers 'How do I transpose a matrix or table?', 'How do I turn rows into columns?'.

Price$0.01per request
MethodPOST
Route/v1/data-transform/transpose
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformtransposematrixtablerowscolumnswrangle
API URLhttps://x402.hexl.dev/v1/data-transform/transpose
Integration docs
Example request
{
  "matrix": [
    [
      1,
      2,
      3
    ],
    [
      4,
      5,
      6
    ]
  ]
}
Example response
{
  "result": [
    [
      1,
      4
    ],
    [
      2,
      5
    ],
    [
      3,
      6
    ]
  ],
  "rows": 3,
  "cols": 2
}
Input schema
{
  "type": "object",
  "required": [
    "matrix"
  ],
  "properties": {
    "matrix": {
      "type": "array",
      "examples": [
        [
          [
            1,
            2,
            3
          ],
          [
            4,
            5,
            6
          ]
        ]
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}