atlas_schema.isin

atlas_schema.isin(haystack, needles, axis=-1)[source]

Find needles in haystack.

This works by first transforming needles to an array with one more dimension than the haystack, placing the needles at axis, and then doing a comparison.

Parameters:
  • haystack (dak.Array or ak.Array) – haystack of values.

  • needles (dak.Array or ak.Array) – one-dimensional set of needles to find in haystack.

  • axis (int) – the axis along which the comparison is performed

Returns:

result of comparison for needles in haystack

Return type:

dak.Array or ak.Array