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

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
2022-03-02T10:41:00Z
Hi ! It works fine on my side. What version ofdatasetsare you using ?
2022-03-02T11:08:24Z
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.Thanks!
2023-08-20T07:34:29Z
You can use this line to solve itdf= df.remove_columns([“column_name”])