pandas.api.types.is_complex_dtype
-
pandas.api.types.is_complex_dtype(arr_or_dtype)
[source] -
Check whether the provided array or dtype is of a complex dtype.
Parameters: arr_or_dtype : array-like
The array or dtype to check.
Returns: -
boolean : Whether or not the array or dtype is of a compex dtype.
Examples
>>> is_complex_dtype(str) False >>> is_complex_dtype(int) False >>> is_complex_dtype(np.complex) True >>> is_complex_dtype(np.array(['a', 'b'])) False >>> is_complex_dtype(pd.Series([1, 2])) False >>> is_complex_dtype(np.array([1 + 1j, 5])) True
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.api.types.is_complex_dtype.html