Hello! I'm running into a weird data validation error, would really appreciate some help.
I have a flow that looks like this:
@flow
def clean_data_flow(df: pd.DataFrame) -> pd.DataFrame:
df = remove_nulls(df)
return df
When I try to run it, I get this error:
File "pydantic/validators.py", line 765, in find_validators
`RuntimeError: no validator found for <class 'pandas.core.frame.DataFrame'>, see
arbitrary_types_allowed
in Config`
If I remove the data validators, so my flow looks like this:
@flow
def clean_data_flow(df):
df = remove_nulls(df)
return df
My code works fine. Not sure why this is happening.