pandera.api.pandas.container.DataFrameSchema.get_dtypes

DataFrameSchema.get_dtypes(check_obj)[source]

Same as the dtype property, but expands columns where regex == True based on the supplied dataframe.

Return type:

Dict[str, DataType]

Returns:

dictionary of columns and their associated dtypes.