A matrix transpose swaps the rows and columns of a matrix, in other words it rotates it 90 degrees. The transposed dataset is a dataset adaptor that takes another dataset and performs the same function.
In other words, rows become columns and columns become rows.
This is useful when performing selects across columns instead of down rows.
The transposition operation is virtual, in other words no copy is made of the dataset.
A new dataset of type transposed
named <id>
can be created as follows:
mldb.put("/v1/datasets/"+<id>, {
"type": "transposed",
"params": {
"dataset": <Dataset (read-only)>
}
})
with the following key-value definitions for params
:
Field, Type, Default | Description |
---|---|
dataset | Dataset to transpose |
transpose
function can also be used within From expressions.merged
dataset type is another dataset transformationtransform
procedure type can be used to modify a dataset ready for merging