我有问题在这里我想读一些csv并将其存储在python pandas的变量中这是我的代码:
import pandas as pd
import numpy as np
df = pd.read_csv("GlobalTemperatures.csv")
这是输出:
---------------------------------------------------------------------------
CParserError Traceback (most recent call
last)
<ipython-input-5-eb2bcd3c4f37> in <module>()
----> 1 df = pd.read_csv("GlobalTemperatures.csv")
(pandas/parser.c:10415)()
pandas/parser.pyx in pandas.parser.TextReader._read_low_memory
(pandas/parser.c:10691)()
pandas/parser.pyx in pandas.parser.TextReader._read_rows
(pandas/parser.c:11437)()
pandas/parser.pyx in pandas.parser.TextReader._tokenize_rows
(pandas/parser.c:11308)()
pandas/parser.pyx in pandas.parser.raise_parser_error
(pandas/parser.c:27037)()
CParserError: Error tokenizing data. C error: Expected 1 fields in
line 6, saw 2
请问,有什么建议吗?