Search code examples
pythonartificial-intelligencehuggingfacehuggingface-datasets

AttributeError: ‘Dataset’ object has no attribute ‘remove_columns’ in hugging face


I want to remove column from Dataset Billsum from hugging face. Error: AttributeError: ‘Dataset’ object has no attribute ‘remove_columns’

I can't find any solution for this problem.. I have a headache from it If someone can help me


Solution

  • You can use this line to solve it

    df= df.remove_columns([“column_name”])