Jupyther notebooks are an excellent tool for exploring and presenting data processing.
Not limited to python only could be used even with SQL!
ipython-sql · PyPI
Jupyter Magics with SQL – Towards Data Science
In [1]:
import pandas as pd
from sqlalchemy.engine import create_engine
# Presto
engine = create_engine('presto://localhost:8080/system/runtime')
#Read Presto Data query into a DataFrame
df = pd.read_sql('select * from queries limit 1', engine)
df.head()
Out[1]:
No comments:
Post a Comment