010:28Open JupyterLite and run your first line
You open a Python notebook in your browser, with no account and nothing to install, and run your first cell.
Catalogue · First steps in Python and SQL, with AI
You total sales by store and rank them from largest to smallest.
Space: play · ← →: 5 seconds · M: sound · F: full screen
The exact sequence, in order.
Type by_store = df.groupby("store")["amount"].sum().
Type by_store.sort_values(ascending=False).
Shift + Enter: Lyon Croix-Rousse on top with 2016.0.
Nantes Talensac brings up the rear with 637.0.
The habit to keep
groupby groups, sum adds up, sort_values ranks.
You might also like
010:28You open a Python notebook in your browser, with no account and nothing to install, and run your first cell.
020:24You load a sales export with pandas and see its first rows and its size.
030:26You filter a table on a value: a city, a product.
Newsletter
One skill a week, straight to your inbox. The easiest way to keep learning without thinking about it.
Your data stays in the EU. Never sold.