Access Google BigQuery Data from local Jupyter Notebooks
Based on the error from gbq.read()
, it appears that httplib2 may not be correctly installed. On the pandas installation page, there are a few optional dependencies which are required for Google BigQuery support (httplib2 is one of them).
To re-install/repair the installation try:
pip install httplib2 --ignore-installed
Once the optional dependencies for Google BigQuery support are installed, the following code should work:
from pandas.io import gbq
df = gbq.read_gbq('SELECT * FROM MyDataset.MyTable', project_id='my-project-id')