DataFrame/Datatypes - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : DataFrames and DataSeries : DataFrame Commands : DataFrame/Datatypes

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.

pricesDataSeries123000,241000,215000,'datatype'='float'8

prices1123000.2241000.3215000.

(1)

nr_bedroomsDataSeries1,2,2,'datatype'='integer'1

nr_bedrooms112232

(2)

has_swimming_poolDataSeriesfalse,true,false,'datatype'='truefalse'

has_swimming_pool1false2true3false

(3)

house_salesDataFrameprices,nr_bedrooms,has_swimming_pool,columns=Prices,`Nr of Bedrooms`,`Swimming Pool?`

house_salesPricesNr of BedroomsSwimming Pool?1123000.1false2241000.2true3215000.2false

(4)

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

Datatypeshouse_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