DataFrame/Datatypes
obtain datatypes for all columns of a DataFrame
Calling Sequence
Parameters
Description
Examples
Compatibility
Datatypes(DF)
DF
-
a DataFrame object
The Datatypes command returns the list of data types of the columns of a DataFrame.
Consider some sales data for houses.
prices≔DataSeries⁡123000,241000,215000,datatype=float8
prices≔1123000.2241000.3215000.
nr_bedrooms≔DataSeries⁡1,2,2,datatype=integer1
nr_bedrooms≔112232
has_swimming_pool≔DataSeries⁡false,true,false,datatype=truefalse
has_swimming_pool≔1false2true3false
house_sales≔DataFrame⁡prices,nr_bedrooms,has_swimming_pool,columns=Prices,`Nr of Bedrooms`,`Swimming Pool?`
house_sales≔PricesNr of BedroomsSwimming Pool?1123000.1false2241000.2true3215000.2false
You can get the data types for the three columns with the Datatypes command.
Datatypes⁡house_sales
float8,integer1,truefalse
The DataFrame/Datatypes command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
DataFrame
DataSeries
DataSeries/Datatype
Download Help Document