pandas.api.types.is_complex#
- pandas.api.types.is_complex(obj)#
Return True if given object is complex.
This function checks whether
objis an instance of Python’s built-incomplextype or numpy’s complex type (e.g.,numpy.complex128).- Parameters:
- objobject
Object to check.
- Returns:
- bool
See also
api.types.is_complex_dtypeCheck whether the provided array or dtype is of a complex dtype.
api.types.is_numberCheck if the object is a number.
api.types.is_integerReturn True if given object is integer.
Examples
>>> pd.api.types.is_complex(1 + 1j) True
>>> pd.api.types.is_complex(1) False