Last active
March 5, 2022 18:50
-
-
Save StuffbyYuki/2694dd02f5a03ca0cc52dcebb88926d4 to your computer and use it in GitHub Desktop.
Pandasql snipet - getting started
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pandasql import sqldf | |
from pandasql import load_meat, load_births # import data | |
mysql = lambda q: sqldf(q, globals()) | |
meat = load_meat() | |
birth = load_births() | |
# start sql queries in pandas | |
mysql('select * from meat limit 5') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment