pandera.api.pandas.container.DataFrameSchema.__call__ΒΆ
- DataFrameSchema.__call__(dataframe, head=None, tail=None, sample=None, random_state=None, lazy=False, inplace=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
,None
]) β validate a random sample of n rows. Rows overlapping with head or tail are de-duplicated.random_state (
Optional
[int
,None
]) β random seed for thesample
argument.lazy (
bool
) β if True, lazily evaluates dataframe against all validation checks and raises aSchemaErrors
. Otherwise, raiseSchemaError
as soon as one occurs.inplace (
bool
) β if True, applies coercion to the object of validation, otherwise creates a copy of the data.
- Return type:
~TDataObject