gpt4 book ai didi

python - 使用 pandas 在 python 中读取 csv 文件时出错

转载 作者:行者123 更新时间:2023-11-28 19:12:28 24 4
gpt4 key购买 nike

<分区>

products = pd.read_csv('C:\amazon_baby.csv')

Traceback (most recent call last):

File "", line 1, in products = pd.read_csv('C:\amazon_baby.csv')

File "C:\Users\kvsn\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 562, in parser_f return _read(filepath_or_buffer, kwds)

File "C:\Users\kvsn\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 315, in _read parser = TextFileReader(filepath_or_buffer, **kwds)

File "C:\Users\kvsn\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 645, in init self._make_engine(self.engine)

File "C:\Users\kvsn\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 799, in _make_engine self._engine = CParserWrapper(self.f, **self.options)

File "C:\Users\kvsn\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 1213, in init self._reader = _parser.TextReader(src, **kwds)

File "pandas\parser.pyx", line 358, in pandas.parser.TextReader.cinit (pandas\parser.c:3427)

File "pandas\parser.pyx", line 628, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:6861)

OSError: File b'C:\x07mazon_baby.csv' does not exist

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com