dropna#

swordfish.function.dropna()#

If X is a vector, delete all null values from X.

If X is a matrix and byRow=true, delete all rows with null values.

If X is a matrix and byRow=false, delete all columns with null values.

If thresh is specified, each row or column (as specified by byRow) in the result must have at least thresh non-null values.

Parameters:
  • X (Constant) – A vector or matrix.

  • byRow (Constant, optional) – A Boolean value. The default value is true.

  • thresh (Constant, optional) – A positive integer.