Created
February 3, 2017 14:24
-
-
Save mmmayo13/a01bffecdf17600c1e471b766a937ac9 to your computer and use it in GitHub Desktop.
This file contains 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
q = """ | |
SELECT | |
date | |
, beef | |
, veal | |
, pork | |
, lamb_and_mutton | |
FROM | |
meat | |
WHERE | |
lamb_and_mutton >= veal | |
ORDER BY date DESC | |
LIMIT 10; | |
""" | |
print pysqldf(q) | |
# date beef veal pork lamb_and_mutton | |
# 0 2012-11-01 00:00:00 2206.6 10.1 2078.7 12.4 | |
# 1 2012-10-01 00:00:00 2343.7 10.3 2210.4 14.2 | |
# 2 2012-09-01 00:00:00 2016.0 8.8 1911.0 12.5 | |
# 3 2012-08-01 00:00:00 2367.5 10.1 1997.9 14.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment