INNER CODE UNIT · Python
PdPipelineStage
pdpipe/pdpipe · src/pdpipe/core.py:278
class PdPipelineStage(abc.ABC):
"""A stage of a pandas DataFrame-processing pipeline.
Parameters
----------
exraise : bool, default True
If true, a pdpipe.FailedPreconditionError is raised when this
stage is applied to a dataframe for which the precondition does
not hold. Otherwise the stage is skipped. Additionally, if true, a
pdpipe.FailedPostconditionError is raised if an expected post-condition
does not hold for an output dataframe (after pipeline application).
Otherwise pipeline application continues uninterrupted.
exmsg : str, default None
The message of the exception raised when this stage application fails
and exraise is set to True. User-provided condition objects are
expected to provide their own messages. A default message is used if
None is given.
desc : str, default None