COL_TYPES

Parameters

colTypes

The expected ColType per column name. Default: empty map, a.k.a. infer every column type.

If supplied for a certain column name (inferred from data or given by header), the parser will parse the column with the specified name as the specified type, else it will infer the type.

e.g. colTypes = mapOf("colName" toColType.Int). You can also set ColType.DEFAULTtoColType.X to set a default column type, like ColType.String.