小编Sar*_*ead的帖子

导入 pyarrow 不起作用 <- 错误是“ValueError:未安装 pyarrow 库,请安装 pyarrow 以使用 to_arrow() 函数。”

我尝试在终端和 juypter 实验室中安装它,它说它已成功安装,但是当我运行 df = query_job.to_dataframe() 时,我不断收到错误“ ValueError: The pyarrow library is not installed, please install pyarrow使用 to_arrow() 函数。”。我不知道如何解决这个问题。有什么建议吗?我试图最终使用代码从谷歌数据工作室访问数据,

from google.cloud import bigquery
import pandas
import numpy
import pyarrow
bigquery_client = bigquery.Client()
import os 
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] ='full file path here.json'
QUERY = """
SELECT * 
FROM `warehouse`
LIMIT 100
"""
query_job = bigquery_client.query(QUERY)
df = query_job.to_dataframe()
Run Code Online (Sandbox Code Playgroud)

google-bigquery jupyter pyarrow

9
推荐指数
2
解决办法
6530
查看次数

标签 统计

google-bigquery ×1

jupyter ×1

pyarrow ×1