DataType¶
- class audformat.define.DataType[source]¶
Data types of column content.
Specifies string values representing data types of different columns within a table or misc table. Those string values have to be provided as
dtype
argument toaudformat.Scheme
, and are returned byaudformat.Scheme.dtype
. The exact string values are part of the scheme specifications, and should never be changed by a user.Use
DATE
to handle time and date information, e.g. as provided bydatetime.datetime
. UseTIME
to handle duration values.
DATE¶
- DataType.DATE = 'date'¶
Date data type.
Data type to store date information, e.g. as provided by
datetime.datetime
.
OBJECT¶
- DataType.OBJECT = 'object'¶
Object data type.
This should be used if no other data type fits. Inside
pandas
it is stored as theobject
data type, comparepandas.DataFrame.dtypes
.
TIME¶
- DataType.TIME = 'time'¶
Time data type.
Data type to store durations, e.g. as provided by
pandas.Timedelta
.