pandera.model.SchemaModel.example

classmethod SchemaModel.example(cls, *, size=None)[source]

Create a hypothesis strategy for generating a DataFrame.

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

  • n_regex_columns – number of regex columns to generate.

Return type

DataFrameBase[~TSchemaModel]

Returns

a strategy that generates pandas DataFrame objects.