AttributeError: 'Dataset' object has no attribute 'remove_columns'

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")


I don’t get it, everywhere seems to point out this is the correct way but…

What am I missing?
Thank you guys

Hi ! It works fine on my side. What version of datasets are you using ?

Hi! I just solved it, it was indeed a problem of versions. I was using 1.0.1. With 1.14.0 it works fine.