I'm trying to create a pipeline in Vertex AI with kfp using my own components from local notebook in Spyder.
When I run the following piece of code:
@component(base_image="python:3.9", packages_to_install=["pandas"])
def create_dataset(
gcs_csv_path_train: str,
dataset: Output[Dataset],
):
import pandas as pd
df = pd.read_csv(gcs_csv_path_train)
dataset = df.pop('Class')
I get the following error:
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '<ipython-input-11-b28c15ec667f>'
The error is not raised if I use a Jupyter notebook online.
What am I doing wrong? Thanks.