Skip to content

pd.Index.isin

pandasIndex.isin(values)

支持的参数

  • values: 类似列表或数组的值

不支持的索引类型

  • 多重索引
  • 时间间隔索引
  • 周期索引

示例用法

>>> @bodo.jit
... def f(I):
...   return I.isin([0, 2, 4])

>>> I = pd.Index([2, 4, 3, 4, 0, 3, 3, 5])
>>> f(I)
array([ True,  True, False,  True,  True, False, False, False])