Hello guys, to migrate a common python pipeline to...
# ask-community
b
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
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
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
yes
This is covered in the tutorial 🙂