In [1]: import pandas as pd
In order to run a query in BigQuery you need to have your own BigQuery project. We can request some public sample data:
In [2]: data = pd.read_gbq('''SELECT title, id, num_characters
...: FROM [publicdata:samples.wikipedia]
...: ...