Skip to content

Update README.md #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ joins and aggregations are also supported
>>> q = """SELECT
m.date, m.beef, b.births
FROM
meats m
meat m
INNER JOIN
births b
ON m.date = b.date;"""
>>> joined = pyqldf(q)
>>> joined = pysqldf(q)
>>> print joined.head()
date beef births
403 2012-07-01 00:00:00 2200.8 368450
Expand All @@ -60,13 +60,13 @@ joins and aggregations are also supported
406 2012-10-01 00:00:00 2343.7 347625
407 2012-11-01 00:00:00 2206.6 320195

>>> q = "select
>>> q = """select
strftime('%Y', date) as year
, SUM(beef) as beef_total
FROM
meat
GROUP BY
year;"
year;"""
>>> print pysqldf(q).head()
year beef_total
0 1944 8801
Expand Down