pandera.schemas.DataFrameSchema.strategy

DataFrameSchema.strategy(*, size=None, n_regex_columns=1)[source]

Create a hypothesis strategy for generating a DataFrame.

Parameters
  • size (Optional[int]) – number of elements to generate

  • n_regex_columns (int) – number of regex columns to generate.

Returns

a strategy that generates pandas DataFrame objects.