pandera.DataFrameSchema.__call__

DataFrameSchema.__call__(dataframe, head=None, tail=None, sample=None, random_state=None, lazy=False)[source]

Alias for DataFrameSchema.validate() method.

Parameters
  • dataframe (pd.DataFrame) – the dataframe to be validated.

  • head (int) – validate the first n rows. Rows overlapping with tail or sample are de-duplicated.

  • tail (int) – validate the last n rows. Rows overlapping with head or sample are de-duplicated.

  • sample (Optional[int]) – validate a random sample of n rows. Rows overlapping with head or tail are de-duplicated.

  • random_state (Optional[int]) – random seed for the sample argument.

  • lazy (bool) – if True, lazily evaluates dataframe against all validation checks and raises a SchemaErrorReport. Otherwise, raise SchemaError as soon as one occurs.