bigframes.pandas.DatetimeIndex.isin#

DatetimeIndex.isin(values)Index#

Return a boolean array where the index values are invalues.

Compute boolean array to check whether each index value is found in thepassed set of values. The length of the returned boolean array matchesthe length of the index.

Examples:

>>>idx=bpd.Index([1,2,3])>>>idxIndex([1, 2, 3], dtype='Int64')

Check whether each index value in a list of values.

>>>idx.isin([1,4])Index([True, False, False], dtype='boolean')
>>>midx=bpd.MultiIndex.from_arrays([[1,2,3],...['red','blue','green']],...names=('number','color'))>>>midxMultiIndex([(1,   'red'),            (2,  'blue'),            (3, 'green')],           names=['number', 'color'])
Parameters:

values (set orlist-like) – Sought values.

Returns:

Series of boolean values.

Return type:

bigframes.pandas.Series

Raises:

TypeError – If object passed toisin() is not a list-like

This Page