Last active
April 14, 2020 05:32
-
-
Save aniruddha27/b58739f24deb78ee7007bf9104f2358b 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
# JOIN clause | |
df = pd.read_sql_query('''Select Sum(train.num_orders) as "Total_Orders", centers.center_type from train | |
Inner Join centers | |
On train.center_id = centers.center_id | |
Group By centers.center_type;''', conn) | |
df.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment