pandera.Check.str_length

classmethod Check.str_length(cls, min_value=None, max_value=None, **kwargs)[source]

Ensure that the length of strings is within a specified range.

Parameters
  • min_value (Optional[int]) – Minimum length of strings (default: no minimum)

  • max_value (Optional[int]) – Maximum length of strings (default: no maximum)

  • kwargs – key-word arguments passed into the Check initializer.

Return type

Check

Returns

Check object