pandera.core.checks.Check.less_than#

classmethod Check.less_than(cls, max_value, **kwargs)[source]#

Ensure values of a series are strictly below a maximum value.

Parameters
  • max_value (Any) – All elements of a series must be strictly smaller than this. Must be a type comparable to the dtype of the pandas.Series to be validated.

  • kwargs (Dict[str, Any]) – arguments forwarded to the Check constructor.

Return type

Check