lsapy.standardize.boolean#

lsapy.standardize.boolean(x, op, thresh, skipna=True)[source]#

Boolean function.

This function applies a boolean operation to the values based on a threshold.

Parameters:
  • x (any) – Input values.

  • op (str) – Logical operator.

  • thresh (int | float) – Threshold value.

  • skipna (bool) – Whether to skip NaN values. If True, NaN values in x will remain NaN in the output. Default is True.

Returns:

Boolean mask of the operation.

Return type:

np.ndarray