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
dtypeargument 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
DATEto handle time and date information, e.g. as provided bydatetime.datetime. UseTIMEto 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
pandasit is stored as theobjectdata type, comparepandas.DataFrame.dtypes.
TIME¶
- DataType.TIME = 'time'¶
Time data type.
Data type to store durations, e.g. as provided by
pandas.Timedelta.