sql = """
select value
from measures
where value > 0
"""
cursor = dbcon.cursor()
cursor.execute(sql)
result=cursor.fetchall()
|
result = (Measure
.select()
.where(Measure.value > 0))
(example with SQLObject)
Jupyter Notebook | pothole data (source: https://data.cambridgema.gov) |
docker run --rm -it -p 8888:8888 \
rpy2/jpd-pdapr-slides
Visit http://localhost:8888/
*
*: If docker-machine (Windows, OS X), the address is:
docker-machine ip [MACHINE]