typeddfs.utils.dtype_utils
Data type tools for typed-dfs.
Module Contents
- class typeddfs.utils.dtype_utils.DtypeUtils
- is_bool
- is_bool_dtype
- is_categorical
- is_categorical_dtype
- is_complex
- is_complex_dtype
- is_datetime64_any_dtype
- is_datetime64tz_dtype
- is_extension_type
- is_float
- is_float_dtype
- is_integer
- is_integer_dtype
- is_interval
- is_interval_dtype
- is_number
- is_numeric_dtype
- is_object_dtype
- is_period_dtype
- is_scalar
- is_string_dtype
- classmethod describe_dtype(cls, t: Type[Any], *, short: bool = False) Optional[str]
Returns a string name for a Pandas-supported dtype.
- Parameters
t – Any Python type
short – Use shorter strings (e.g. “int” instead of “integer”)
- Returns
A string like “floating-point” or “zoned datetime”. Returns
None
if no good name is found or ift
isNone
.