pandas.api.types.is_string_dtype
-
pandas.api.types.is_string_dtype(arr_or_dtype)[source] -
Проверка, является ли предоставленный массив или тип данных типом данных строки.
Параметры: arr_or_dtype : массив-подобный объект
Массив или тип данных для проверки.
Возвращает: -
boolean : Whether or not the array or dtype is of the string dtype.
Примеры
>>> is_string_dtype(str) True >>> is_string_dtype(object) True >>> is_string_dtype(int) False >>> >>> is_string_dtype(np.array(['a', 'b'])) True >>> is_string_dtype(pd.Series([1, 2])) 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_string_dtype.html