visions.functional.infer_type¶
-
visions.functional.
infer_type
(data, typeset)[source]¶ Infer the current types of each column in the DataFrame given the typeset.
- Parameters
df – the DataFrame to infer types on
typeset (
VisionsTypeset
) – the Typeset that provides the type context
- Return type
Union
[Dict
[str
,Type
[VisionsBaseType
]],Type
[VisionsBaseType
]]- Returns
A dictionary with a mapping from column name to type