Datatypes - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


DataFrame/Datatypes

obtain datatypes for all columns of a DataFrame

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Datatypes(DF)

Parameters

DF

-

a DataFrame object

Description

• 

The Datatypes command returns the list of data types of the columns of a DataFrame.

Examples

Consider some sales data for houses.

> 

prices≔DataSeries⁡123000,241000,215000,datatype=float8

prices≔1123000.2241000.3215000.

(1)
> 

nr_bedrooms≔DataSeries⁡1,2,2,datatype=integer1

nr_bedrooms≔112232

(2)
> 

has_swimming_pool≔DataSeries⁡false,true,false,datatype=truefalse

has_swimming_pool≔1false2true3false

(3)
> 

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

(4)

You can get the data types for the three columns with the Datatypes command.

> 

Datatypes⁡house_sales

float8,integer1,truefalse

(5)

Compatibility

• 

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