getvaliddata#
- getvaliddata(data=None, filterdata=None, defaultind=0)[source]#
Return the data value indices that are valid based on the validity of the input data.
This function is deprecated; see
sc.sanitize()
instead.Example:
sc.getvaliddata(array([3,5,8,13]), array([2000, nan, nan, 2004])) # Returns array([3,13])