Spec-Zone.ru › pandas 0.24

pandas.api.types.is_interval_dtype

pandas.api.types.is_interval_dtype(arr_or_dtype) [source]

Проверка, является ли массив или тип данных типом данных Interval.

Параметры:
arr_or_dtype : array-like

Проверяемый массив или тип данных.

Возвращает:
boolean : Whether or not the array-like or dtype is

является ли тип данных типом Interval.

Примеры

>>> is_interval_dtype(object)
False
>>> is_interval_dtype(IntervalDtype())
True
>>> is_interval_dtype([1, 2, 3])
False
>>>
>>> interval = pd.Interval(1, 2, closed="right")
>>> is_interval_dtype(interval)
False
>>> is_interval_dtype(pd.IntervalIndex([interval]))
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.24.2/reference/api/pandas.api.types.is_interval_dtype.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API