pandera.api.dataframe.model_components.dataframe_check(_fn=None, **check_kwargs)[source]

Defines DataFrameModel check methods for dataframes.

new in 0.5.0

Decorate a method on the DataFrameModel indicating that it should be used to validate the DataFrame. The method will be converted to a classmethod. Therefore its signature must start with cls followed by regular check arguments. See the User Guide for more.


check_kwargs – Keywords arguments forwarded to Check.

Return type:

Callable[[Union[classmethod, Callable[…, Any]]], classmethod]