transpose a DataFrame
Transpose( df )
df ^ +
df ^ %T
: DataFrame : the DataFrame to be transposed
The Transpose command creates a DataFrame that is the transpose of the input DataFrame df. That is, the rows of the output DataFrame are the columns of df, and the columns of the output DataFrame are the rows of df.
Transpose⁡df can also be entered as df+ or as df%T.
df ≔ DataFrame⁡1|2|3,4|5|6,'rows'='a','b','columns'='A','B','C'
df2 ≔ :-Transpose⁡df
Transpose also has two alternative calling sequences:
The DataFrame/Transpose command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
Download Help Document