Open
Description
pandas.api.types.infer_dtype
returns a string label of the inferred type of data. (While these should probably be an enum
), these string labels do not map cleanly to what supported pandas data type represents that data e.g "mixed"
would probably map to "object"
It would be nice to
- Add a parameter
as_pandas_type: bool = False
that would return an enum representing the supported pandas type (e.g."mixed"
and"unknown-array"
, maps to "PandasType.OBJECT") - Add a separate function to do this