https://prefect.io logo
Title
s

Steph Clacksman

10/12/2022, 7:21 AM
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:
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

Rob Freedy

10/12/2022, 3:21 PM
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

Steph Clacksman

10/12/2022, 6:48 PM
Ah, looks like there's already a report for it: https://github.com/PrefectHQ/prefect/issues/6962
👍 1