pandas 0.23 - pandas.api.types.is_complex_dtype()
pandas.api.types.is_complex_dtype

pandas.api.types.is_complex_dtype
-
pandas.api.types.is_complex_dtype(arr_or_dtype)
[source] -
जांचें कि प्रदान की गई सरणी या dtype एक जटिल dtype है या नहीं।
पैरामीटर: arr_or_dtype : array-like
जाँच करने के लिए सरणी या dtype।
यह दिखाता है: -
boolean : Whether or not the array or dtype is of a compex dtype.
उदाहरण
>>> 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
-