https://dagster.io/ logo
#dagster-support
Title
# dagster-support
b

Byron Murillo

12/05/2022, 4:14 PM
Hello guys, to migrate a common python pipeline to a dagster we have to use the @solid decorator for the node functions or we have to use the op decorator?
r

rex

12/05/2022, 4:20 PM
use `@op`: here’s a short tutorial on it. https://docs.dagster.io/tutorial/ops-jobs/single-op-job where did you see the reference to
@solid
?
b

Byron Murillo

12/05/2022, 4:26 PM
For example, to migrate this common function to a dagster framework function
Copy code
def create_dataset(path: str) -> pd.DataFrame:
    """
    Creates a Pandas DataFrame from a file retrieved from specified path
    :param path: of the CSV file to use to create the DataFrame
    :return: Pandas DataFrame dataset from CSV file
    """

    return pd.read_csv(path)
I have to use the @op decorator?
r

rex

12/05/2022, 4:27 PM
yes
This is covered in the tutorial 🙂
2 Views