General utility functions — pandas 0.24.2 documentation (original) (raw)

Dtype introspection

api.types.is_bool_dtype(arr_or_dtype) Check whether the provided array or dtype is of a boolean dtype.
api.types.is_categorical_dtype(arr_or_dtype) Check whether an array-like or dtype is of the Categorical dtype.
api.types.is_complex_dtype(arr_or_dtype) Check whether the provided array or dtype is of a complex dtype.
api.types.is_datetime64_any_dtype(arr_or_dtype) Check whether the provided array or dtype is of the datetime64 dtype.
api.types.is_datetime64_dtype(arr_or_dtype) Check whether an array-like or dtype is of the datetime64 dtype.
api.types.is_datetime64_ns_dtype(arr_or_dtype) Check whether the provided array or dtype is of the datetime64[ns] dtype.
api.types.is_datetime64tz_dtype(arr_or_dtype) Check whether an array-like or dtype is of a DatetimeTZDtype dtype.
api.types.is_extension_type(arr) Check whether an array-like is of a pandas extension class instance.
api.types.is_extension_array_dtype(arr_or_dtype) Check if an object is a pandas extension array type.
api.types.is_float_dtype(arr_or_dtype) Check whether the provided array or dtype is of a float dtype.
api.types.is_int64_dtype(arr_or_dtype) Check whether the provided array or dtype is of the int64 dtype.
api.types.is_integer_dtype(arr_or_dtype) Check whether the provided array or dtype is of an integer dtype.
api.types.is_interval_dtype(arr_or_dtype) Check whether an array-like or dtype is of the Interval dtype.
api.types.is_numeric_dtype(arr_or_dtype) Check whether the provided array or dtype is of a numeric dtype.
api.types.is_object_dtype(arr_or_dtype) Check whether an array-like or dtype is of the object dtype.
api.types.is_period_dtype(arr_or_dtype) Check whether an array-like or dtype is of the Period dtype.
api.types.is_signed_integer_dtype(arr_or_dtype) Check whether the provided array or dtype is of a signed integer dtype.
api.types.is_string_dtype(arr_or_dtype) Check whether the provided array or dtype is of the string dtype.
api.types.is_timedelta64_dtype(arr_or_dtype) Check whether an array-like or dtype is of the timedelta64 dtype.
api.types.is_timedelta64_ns_dtype(arr_or_dtype) Check whether the provided array or dtype is of the timedelta64[ns] dtype.
api.types.is_unsigned_integer_dtype(arr_or_dtype) Check whether the provided array or dtype is of an unsigned integer dtype.
api.types.is_sparse(arr) Check whether an array-like is a 1-D pandas sparse array.