semantique.processor.operators.not_in_

Contents

semantique.processor.operators.not_in_#

semantique.processor.operators.not_in_(x, y, track_types=True, **kwargs)[source]#

Test if x is not a member of set y.

Parameters:
  • x (xarray.DataArray) – Array containing the operands at the left-hand side of each expression.

  • y (list) – Operands at the right-hand side of each expression. Should be a set of values, which remains constant among all evaluated expressions.

  • track_types (bool) – Should the operator promote the value type of the output object, based on the value type of the input objects?

  • **kwargs – Ignored.

Returns:

xarray.DataArray – An array with the same shape as x containing the results of all evaluated expressions.

Note

When tracking value types, this operator uses the following type promotion manual, with the first layer of keys being the supported value types of x, the second layer of keys being the supported value types of y given the value type of x, and the corresponding value being the promoted value type of the output.

{'binary': {'binary': 'binary'}, 'continuous': {'continuous': 'binary', 'discrete': 'binary'}, 'discrete': {'continuous': 'binary', 'discrete': 'binary'}, 'nominal': {'nominal': 'binary'}, 'ordinal': {'ordinal': 'binary'}, 'coords': {'coords': 'binary'}, 'datetime': {'datetime': 'binary'}}