pandas requires google-cloud-python for Google BigQuery support:
See original GitHub issueI used to do this in a datalab notebook
df = gbq.read_gbq('SELECT * FROM gsd_sample.blackman75', PROJECT)
Now, it says
ImportError: pandas requires google-cloud-python for Google BigQuery support: cannot import name make_exception
In the python notebook, I am doing:
import math
import shutil
import numpy as np
import pandas as pd
import tensorflow as tf
import re
import matplotlib.pyplot as plt
import IPython.display as ipd
import os
import io
import sys
import base64
import hashlib
from sklearn import preprocessing
import datetime
from pandas.io import gbq
import apache_beam as beam
print tf.__version__
And prior to that, I do this in the datalab notebook
!pip install librosa soundfile google-cloud-storage pandas-gbq google-cloud-bigquery pandas-gbq google-cloud -U
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top Results From Across the Web
pandas requires google-cloud-python for Google BigQuery ...
I used to do this in a datalab notebook df = gbq.read_gbq('SELECT * FROM gsd_sample.blackman75', PROJECT) Now, it says ImportError: pandas ...
Read more >Comparison with pandas-gbq | BigQuery - Google Cloud
Loading a pandas DataFrame to a BigQuery table ... google-cloud-bigquery : The google-cloud-bigquery package requires the pyarrow library to serialize a pandas ......
Read more >bigquery pandas df on datalab - python - Stack Overflow
I want to use pandas to pull from bigquery ...
Read more >Installation — pandas-gbq documentation - Google Cloud
This installs pandas-gbq and all common dependencies, including pandas . Install from Source¶. $ pip install git+https://github.com/googleapis/python-bigquery ...
Read more >pandas-gbq Documentation - Read the Docs
google -api-python-client: Google's API client (no longer required, replaced by google-cloud-bigquery:) • google-auth: authentication and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Removed google-cloud from pip. Changed python interpreter from version 3 to version 2 and now it works.
Thanks @max-sixty, It worked. 👍