pandera.schemas.DataFrameSchema.coerce_dtype

DataFrameSchema.coerce_dtype(obj)[source]

Coerce dataframe to the type specified in pandas_dtype.

Parameters

obj (DataFrame) – dataframe to coerce.

Return type

DataFrame

Returns

dataframe with coerced dtypes