pandera.schemas.DataFrameSchema.get_dtype

DataFrameSchema.get_dtype(dataframe)[source]

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

Return type

Dict[str, str]

Returns

dictionary of columns and their associated dtypes.