Ysabel Caballes07/30/2023, 12:47 PM
When I try to run it, I get this error:
@flow def clean_data_flow(df: pd.DataFrame) -> pd.DataFrame: df = remove_nulls(df) return df
`RuntimeError: no validator found for <class 'pandas.core.frame.DataFrame'>, see
File "pydantic/validators.py", line 765, in find_validators
in Config` If I remove the data validators, so my flow looks like this:
My code works fine. Not sure why this is happening.
@flow def clean_data_flow(df): df = remove_nulls(df) return df
Daniel07/31/2023, 10:46 PM
but since you're using
I don't think you can do that. You can either skip validation as you have done, or pass a more standard type. If you're going to deploy the flow then the parameters also need to be json-serialisable.
Ysabel Caballes08/02/2023, 1:04 PM