【发布时间】:2022-11-03 21:48:36
【问题描述】:
Pyarrow 找不到我的镶木地板文件,我不知道为什么。也许路径没有被读取?
我的代码:
import pandas as pd
df = pd.read_parquet('parquetfile1.parquet', engine='pyarrow')
错误:
C:\Users\name\Desktop\unit_tests>py run_file.py
Traceback (most recent call last):
File "C:\Users\name\Desktop\tests\run_file.py", line 3, in <module>
df = pd.read_parquet('parquetfile1.parquet', engine='pyarrow')
File "C:\Users\name\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\io\parquet.py", line 503, in read_parquet
return impl.read(
File "C:\Users\name\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\io\parquet.py", line 244, in read
path_or_handle, handles, kwargs["filesystem"] = _get_path_or_handle(
File "C:\Users\name\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\io\parquet.py", line 102, in _get_path_or_handle
handles = get_handle(
File "C:\Users\name\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\io\common.py", line 865, in get_handle
handle = open(handle, ioargs.mode)
FileNotFoundError: [Errno 2] No such file or directory: 'parquetfile1.parquet'
【问题讨论】: