Skip to main content

checks.Context

What a check may need beyond the series itself.

Usage

Source

checks.Context(
    frequency=None, role="other", previous=None, excluded=frozenset()
)

frequency is "M", "Q" or "Y" (read from the index when unset); role the series’ role; previous the same series in the previous vintage; excluded the periods a treatment excluded, which no check counts against the series.

Parameter Attributes

frequency: str | None = None
role: str = "other"
previous: pd.Series | None = None
excluded: frozenset[pd.Period] = frozenset()