typeset
¶
The default typeset: the variable types of a profile and how they are inferred.
Classes¶
ProfilingTypeSet
¶
Functions:¶
typeset_types(config)
¶
Define the active types, in precedence order, based on the config.
When more than one relation leaving a type matches a column, the target listed first wins:
- Boolean before Numeric: a string listed in
vars.bool.mappingsis a flag, even when it also parses as a number (e.g. a user maps "1"/"0"). - DateTime, URL and Path before Categorical: a date, URL or path column keeps its type even when it has few distinct values.
- Categorical before TimeSeries: a numeric column with at most
vars.num.low_categorical_thresholddistinct values is categorical in every mode, as it is when the same values arrive as strings. - Categorical before Text: the low-cardinality reading wins over free text.