Catalogue · First steps in Python and SQL, with AI

A chart in one line

You turn a total by store into a bar chart, in a single line.

JupyterLiteIntermediate0:25Capsule 6 of 12
SkillKapsul

Space: play · ← →: 5 seconds · M: sound · F: full screen

The steps

The exact sequence, in order.

  1. 01

    Start from the total by store, by_store.

  2. 02

    Type by_store.sort_values().plot(kind="barh", title="Revenue by store (€)");

  3. 03

    The final semicolon hides a technical line.

  4. 04

    Shift + Enter: twelve horizontal bars, Lyon Croix-Rousse at the top.

The habit to keep

The chart shows the same numbers as the table, nothing more.

Related capsules

You might also like

Newsletter

Monday's capsule

One skill a week, straight to your inbox. The easiest way to keep learning without thinking about it.

No spam, no reselling. One-click unsubscribe.

Your data stays in the EU. Never sold.

SkillKapsul