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
data (
Sequence
) – the DataFrame to infer types ontypeset (
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