Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Last active April 14, 2020 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniruddha27/2791a23f3354e55ca6f9d1bfccc50018 to your computer and use it in GitHub Desktop.
Save aniruddha27/2791a23f3354e55ca6f9d1bfccc50018 to your computer and use it in GitHub Desktop.
# ORDER BY descending
df = pd.read_sql_query('''Select Count(center_type), center_type
From centers
Group By center_type
Order by Count(center_type) Desc; ''',conn)
df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment