Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_from_parquet component does not allow to keep original index #890

Open
RobbeSneyders opened this issue Mar 5, 2024 · 0 comments
Open

Comments

@RobbeSneyders
Copy link
Member

When using the load_from_parquet component, it is not possible to keep the original index.

If the id_column argument is not set, Fondant will automatically generate a new unique index. But the id_column argument only allows the selection of regular columns, not the index.

Eg. for the following dataset:

image

Using load_from_parquet with id_column="id" leads to the following error:

ValueError: An error occurred while calling the read_parquet method registered to the pandas backend.
Original Message: The following columns were not found in the dataset {'id'}
The following columns were found Index(['embedding', 'url'], dtype='object')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant