You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description DataFrameSchema with column of type pandera.Float will raise SchemaError on validating DataFrame with float32 column
Minimal Failing Example
schema=DataFrameSchema(
columns={
"A": Column(
pa.Float,
),
},
)
df=pd.DataFrame({"A":[0.1]}, dtype="float32")
schema.validate(df)
#SchemaError: expected series 'A' to have type 'float64', got 'float32'
Expected behavior
Given that the pandera documentation states that pandera.Float corresponds to numpyfloat the expectation is that a SchemaError is not raised for columns with type float16, float32, float64, or float128
Additional context
Our dataset columns go through a transformation from float128 to float32 and we would like to use the same schema for validation before and after the transformation.