FracNan¶
- class lsst.analysis.tools.actions.scalar.FracNan(*args, **kw)¶
Bases:
ScalarAction
Compute the fraction of vector entries that are NaN.
Attributes Summary
Express result as percentage (
bool
, defaultFalse
)Name of column (
str
)Methods Summary
__call__
(data, **kwargs)Return the fraction of rows with NaN values.
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.Attributes Documentation
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap], **kwargs) Scalar ¶
Return the fraction of rows with NaN values.
- Parameters:
- data
KeyedData
- data
- Returns:
- result
Scalar
The fraction (or percentage) of rows with NaN values.
- result
- getInputSchema() HealSparseMap]]] ¶
Return the schema an
AnalysisAction
expects to be present in the arguments supplied to the __call__ method.- Returns:
- result
KeyedDataSchema
The schema this action requires to be present when calling this action, keys are unformatted.
- result