series_intersects#
- series_intersects(series, other, method='binsearch', n_partitions=1, num_workers=None)#
Returns a bool series of length len(series). True for every row in which row intersects other.
- Parameters
- series: pandas.Series (like)
The series to evaluate intersects with other
- other: (Collection of) SID(s)
The collection of SIDs to test intersections of the series with
- method: str
either ‘skiplist’, ‘binsearch’, or ‘nn’
- n_partitions: int
number of partitions
- num_workers: int
number of workers
- Returns
- ——–
- intersects: bool numpy.array
Array of len(series).
Examples
>>> import starepandas >>> import pandas >>> series = pandas.Series([[4035225266123964416], ... [4254212798004854789, 4255901647865118724]]) >>> starepandas.series_intersects(series, 4035225266123964416) array([ True, True])