withNullFill#

swordfish.function.withNullFill()#

If only 1 of the elements at the same location of x and y is null, replace the null value with fillValue in the calculation. If both elements at the same location of x and y are null, return NULL.

Parameters:
  • func (Constant) – A DolphinDB built-in function with two inputs, such as +, -, *, /, \, %, pow, and, or, etc.

  • X (Constant) – A vector/matrix.

  • Y (Constant) – A vector/matrix.

  • fillValue (Constant) – A scalar.