DataFrame/convert
conversions to and from DataFrame
Calling Sequence
Parameters
Description
Examples
Compatibility
convert( expr, DataFrame )
convert( df, typ )
convert( df, list, nested )
expr
-
a Matrix or two-dimensional Array
df
DataFrame
The convert command can convert certain types of expressions expr to a DataFrame, and can convert a DataFrame df to certain other types typ.
The convert( expr, DataFrame ) form of the command converts an expression expr, which must be a Matrix, or two-dimensional Array, to a DataFrame object.
A DataFrame df can be converted to a set, Array, Vector or Matrix, nested list of lists, or table.
To convert a DataFrame df to a nested list of lists, use the form convert( df, 'list', 'nested' ).
df≔convert⁡1|2|3,4|5|6,DataFrame
df≔12311232456
convert⁡df,list,nested
1,4,2,5,3,6
convert⁡df,table
table⁡1,2=2,2,3=6,1,1=1,1,3=3,2,1=4,2,2=5
convert⁡df,Matrix
123456
The DataFrame/convert command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
Array
convert
convert/list
DataSeries
list
Matrix
set
table
type
type/list
Vector
Download Help Document