Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

gcp jupyter use python variables in magic bigquery

date_str_query = '2019-02-%'
sql = """
select * from `project.dataset.table`
where date_str like {0}
""".format(date_str_query)
df = client.query(sql).to_dataframe()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #gcp #jupyter #python #variables #magic #bigquery
ADD COMMENT
Topic
Name
2+3 =