pandas.api.types.is_int64_dtype
-
pandas.api.types.is_int64_dtype(arr_or_dtype)[source] -
Проверка, является ли предоставленный массив или тип данных типом int64.
Параметры: arr_or_dtype : массив-подобный
Проверяемый массив или тип данных.
Возвращает: -
boolean : Whether or not the array or dtype is of the int64 dtype.
Примечания
В зависимости от архитектуры системы возвращаемое значение
is_int64_dtype( int)будет True, если операционная система использует 64-битные целые числа, и False, если операционная система использует 32-битные целые числа.Примеры
>>> is_int64_dtype(str) False >>> is_int64_dtype(np.int32) False >>> is_int64_dtype(np.int64) True >>> is_int64_dtype(float) False >>> is_int64_dtype(np.uint64) # unsigned False >>> is_int64_dtype(np.array(['a', 'b'])) False >>> is_int64_dtype(np.array([1, 2], dtype=np.int64)) True >>> is_int64_dtype(pd.Index([1, 2.])) # float False >>> is_int64_dtype(np.array([1, 2], dtype=np.uint32)) # unsigned False
-
© 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_int64_dtype.html