0

I am trying to convert the data that I am fetching from BigQuery into pandas dataframe. My code looks like this:

os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="/Users/Me/Documents/credentials/google_creds.json"

# Establish the client
client = bigquery.Client(

query = """select * from bq_project.bq_table"""
df = client.query(query).to_dataframe()

This is the error: TypeError: from_arrays() takes at least 2 positional arguments (1 given) It errors out on df = client.query(query).to_dataframe() line.

2 Answers 2

1

pip install --upgrade pyarrow then reloading jupyter notebook has solved the issue.

Sign up to request clarification or add additional context in comments.

Comments

1

If you use conda for your other downloads, you can also use conda install pyarrow -c conda-forge per the PyPi documentation of the pyarrow package.

Also make sure to restart your kernel!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.