DataSet.as_missing(self, value=None)#

Change a range or individual value to missing.


value (2 variable list or int/float) – If int/float is provided, the missing value will be set to that. If a list is provided, values between the two values (inclusive) of the list are set to missing.


Set all zeros to missing: >>> ds.as_missing(0)

Set all values between 0 and 1 to missing: >>> ds.as_missing([0, 1])