Not able to load dataset `TypeError: read_csv() got an unexpected keyword argument 'mangle_dupe_cols'`
#1
by
philippelaban
- opened
Thanks for your great work!
Very excited to look at the dataset. However currently when I load it (Python 3.9, datasets==2.14.6), I get the following error:
ValueError: Couldn't cast
id: int64
question: string
A: string
B: string
C: string
D: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 885
to
{'id': Value(dtype='int64', id=None), 'question': Value(dtype='string', id=None), 'A': Value(dtype='string', id=None), 'B': Value(dtype='string', id=None), 'C': Value(dtype='string', id=None), 'D': Value(dtype='string', id=None), 'answer': Value(dtype='string', id=None), 'explanation': Value(dtype='string', id=None)}
because column names don't match
The code I used is:
from datasets import load_dataset
dataset = load_dataset("SUFE-AIFLM-Lab/FinEval",name="finance")
Thanks for any help using the dataset!