semantique.processor.arrays.Array.apply_custom

semantique.processor.arrays.Array.apply_custom#

Array.apply_custom(verb, track_types=True, **kwargs)[source]#

Apply a user-defined verb to the array.

Parameters:
  • verb (callable) – Implementation of the custom verb which will be provided to xarray.DataArray.pipe().

  • track_types (bool) – Should the value type(s) of the input(s) be checked, and the value type of the output be promoted, whenever applicable?

  • **kwargs – Additional keyword arguments passed on to the verb function.

Returns:

xarray.DataArray