Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

gcp jupyter use python variables in magic bigquery

params = {'date_str_query': '%-2019-02-%'}

%%bigquery df --params $params
select * from `project.dataset.table`
where date_str like @date_str_query
Comment

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()
Comment

PREVIOUS NEXT
Code Example
Python :: how to use print statement in python 
Python :: ldap python how to print entries 
Python :: pyqt message box set detailed text 
Python :: alpaca examples 
Python :: come mettere una scelta su python 
Python :: add 10 min to current time django 
Python :: PN generator 
Python :: varianza en pandas 
Python :: Improve the Request Handle Errors 
Python :: Python of if...else 
Python :: how to print out voice level in python 
Python :: python deque deep copy 
Python :: osmapi 
Python :: plotly two y axis bar chart 
Python :: How to provide type hinting in UserDict? 
Python :: NxN Array 
Python :: using deque to make a list 
Python :: float decimals 
Python :: telegram bot python 
Python :: th most effective search methods in python with example 
Python :: if you have a list and the user input one of the keys then output its value 
Python :: python SynC 
Python :: pandas to csv if no already present 
Python :: python import a filename given as string 
Python :: Matplotlib scatter plot custom point annotation 
Python :: dividing col in csv 
Python :: python tkinter button multiple commands 
Python :: poisson disc python 
Python :: van first name van second name van last name 
Python :: gui apps 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =