When running the code below, I am receiving a pyarrow error. I have installed pyarrow and I am still getting the same error. I am able to access the table and see the schemas, etc. but to_dataframe() does not work when copying the same code as Google Bigquery documentation.
from google.cloud import bigquery
from google.oauth2 import service_account
key_path = key_path #personal json file
credentials = service_account.Credentials.from_service_account_file(
key_path, scopes=["https://www.googleapis.com/auth/cloud-platform"],
)
client = bigquery.Client(credentials=credentials, project=credentials.project_id,)
query = """
select *
from `table`
limit 10;
"""
df = client.query(query).to_dataframe() # I have also tried with df = client.query(query).result().to_dataframe()
I am receiving the following error when running:
ValueError: The pyarrow library is not installed, please install pyarrow to use the to_arrow() function.