是 jupyter notebook 的 extension 其名稱直接了當的告訴我們 它被用來 擴充 jupyter notebookk 對 SQL 的支援
這個套件底層使用 SQLAlchemy 因此不論你的資料庫是 sqlite, postgresql, mysql 都可以透過它操作
install
pip install ipython-sql
usage
%load_ext sql
pandas
result = %sql SELECT * FROM character WHERE speechcount > 25 dataframe = result.DataFrame()