Types Data
WARNING
Type's system is unsatisfactory and will certainly be totally rethought in the future.
Understood first the structure and types
Two ways:
- Converts pre-existing data once only
- Converts pre-existing data and forces the type of future data
- And force the future data to be typed since submission
- Or silently convert untyped future data
Convert data to a type (one shot)
php
$df->col('a')->type(DataType::INT);
Keep an active conversion for a column
Set it
php
$df->col('a')->enforceType(DataType::INT);
Remove it
php
$df->col('a')->enforceType(null); # Note that data already converted, only the following additions we be concerned.