【发布时间】:2021-11-25 03:19:11
【问题描述】:
我正在尝试使用 pd.read_parquet 检索 DataFrame,但出现以下错误:
OSError: Passed non-file path: my/path
我使用前缀为 gs:// 的路径访问 GCS 中的 .parquet 文件 由于某些未知原因,OSError 显示不带前缀 gs:// 的路径 我确实怀疑它与凭据有关,但是在我的 Mac 上我可以毫无问题地使用 gsutil。我可以通过 Google Cloud Platform 访问和下载 parquet 文件。我只是无法直接在 gs:// 路径中读取 .parquet 文件。有什么想法为什么不呢?
【问题讨论】:
标签: python-3.x pandas google-cloud-platform google-cloud-storage parquet