Hi, I’m trying to remove a column of a huggingface dataset and I keep getting this message:
AttributeError: ‘Dataset’ object has no attribute ‘remove_columns’
The code:
from datasets import load_dataset
raw_datasets = load_dataset("glue", "mrpc")
raw_datasets['train'].remove_columns("sentence1")
I don’t get it, everywhere seems to point out this is the correct way but…
What am I missing?
Thank you guys