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'])
On this page