Data Types

Data Types

PETsARD uses a simplified type system.

Basic Types

TypeDescriptionConfiguration
intIntegertype: int or type: integer
floatFloattype: float
strStringtype: str or type: string
dateDatetype: date
datetimeDatetimetype: datetime
ℹ️
Note: PETsARD does not support type: category. Categorical information should be marked using the category: true parameter, as this is treated as field attribute information rather than a data type.

Type Conversion Mapping

The system automatically converts various pandas dtypes to simplified types:

Pandas dtypePETsARD Type
int8, int16, int32, int64, Int64int
uint8, uint16, uint32, uint64int
float16, float32, float64float
object, stringstr
bool, booleanstr
datetime64[ns]datetime
ℹ️
Why Unify Types: To support null value handling (using nullable integer) and ensure synthetic data compatibility (handling float → int conversion).