Skip to content

Latest commit

 

History

History

bigquery

README

Project Summary

In this tutorial, we'll learn how to write pandas dataframe to BigQuery and how to query from BigQuery within pandas.

Requirements

  • If you haven't already, you may sign-up for the free GCP trial credit.
    Set up your project on GCP and enable the BigQuery API.
  • (optional, but recommended) Set-up a Python virtual environment:
    pyenv virtualenv gcp_env
    pyenv activate gcp_env
  • Install pandas and the pandas wrapper for BigQuery:
pip install -r requirements.txt

Clean-up

pyenv deactivate

Reference

Additional Tutorial

The dataflow and datalab directories within this repository have tutorials on how to write dataflow results to BigQuery and how to write BigQuery queries within Datalab.