pandera.api.pyspark.container.DataFrameSchema.get_dtypes

DataFrameSchema.get_dtypes(dataframe)[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.