FracNan

class lsst.analysis.tools.actions.scalar.FracNan(*args, **kw)

Bases: ScalarAction

Compute the fraction of vector entries that are NaN.

Attributes Summary

percent

Express result as percentage (bool, default False)

vectorKey

Name of column (str)

Methods Summary

__call__(data, **kwargs)

Return the fraction of rows with NaN values.

getInputSchema()

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Attributes Documentation

percent

Express result as percentage (bool, default False)

vectorKey

Name of column (str)

Methods Documentation

__call__(data: MutableMapping[str, ndarray[Any, dtype[ScalarType]] | Scalar | HealSparseMap], **kwargs) Scalar

Return the fraction of rows with NaN values.

Parameters:
dataKeyedData
Returns:
resultScalar

The fraction (or percentage) of rows with NaN values.

getInputSchema() HealSparseMap]]]

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Returns:
resultKeyedDataSchema

The schema this action requires to be present when calling this action, keys are unformatted.