I am having trouble passing a dataframe from a flo...
# prefect-community
s
I am having trouble passing a dataframe from a flow to a subflow - it throws a type error. I have made a minimal reproducible example:
Copy code
import pandas as pd
from prefect import flow


@flow
def test_flow() -> None:
    df = pd.DataFrame({"ID": ["123456789", "223456789"]})
    test_subflow(df)


@flow(validate_parameters=False)
def test_subflow(df: pd.DataFrame) -> None:
    print(df)


if __name__ == "__main__":
    test_flow()
1
r
Hey @Steph Clacksman!! I was able to take your code and reproduce the error on prefect version 2.5. Would you mind submitting a git issue here and we'll have the team take a look? https://github.com/PrefectHQ/prefect/issues
s
Ah, looks like there's already a report for it: https://github.com/PrefectHQ/prefect/issues/6962
👍 1