Đại học Kinh tế Quốc dân – National Economics UniversityMICRO4ASIA
🏆 Arena
Sign inSign up
MICRO4ASIAThe six micro-credentials

Courses are delivered on the Limio learning platform. Limio

Back to the lessonPreparing the printout…

Data Cleaning and Preprocessing with Python · Module 1 — Explore and Understand the Data

Period 5 · Exploring Sales Data with Charts

[video] Lecture video — Period 5: Exploring Sales Data with Charts — /api/lesson-media/videos/4d3653ff-a3ca-4f63-bf8e-bb93c553e599-1794847904590-adf948704e96aaef.mp4

[markdown] content available only on the platform

[markdown] content available only on the platform

Flashcards · Exploring Sales Data with Charts

Histogram — A chart that counts how many values of one numeric variable fall into each interval (bin).

`df["quantity"].plot.hist(bins=20)`

Bin — One interval of a histogram; its width affects how much detail the chart shows.

Bins 0-5, 5-10, 10-15 items

Right skew — A distribution with a long tail of large values on the right side.

Most quantities 1-7, one order of 20 items.

Boxplot — A chart showing the median, Q1 to Q3 box, whiskers within 1.5 x IQR, and points beyond them.

`plt.boxplot(df["quantity"].to_numpy())`

Whisker — The line from the box to the most extreme observed value still inside the 1.5 x IQR limit.

Upper limit 9, so the whisker ends at 7.

Bar chart — A chart comparing a count or total across categories; the axis should start at zero.

`df["region"].value_counts().plot.bar()`

Scatter plot — A chart placing each record as a point using two numeric variables.

`df.plot.scatter(x="quantity", y="unit_price")`

Negative association — A pattern where one variable tends to decrease as the other increases; it does not prove cause.

Unit price falls as quantity rises in the sample.

value_counts().reindex() — Counts categories and puts them in a fixed order for consistent charts.

`.reindex(["North", "South", "Central"])`

[pdf] Lecture slides — Period 5 (PDF) — /api/lesson-media/pdfs/4d3653ff-a3ca-4f63-bf8e-bb93c553e599-1794873708887-d2276384f0cc8508.pdf

Data Cleaning and Preprocessing with Python · Period 5 · Exploring Sales Data with Charts · printed on November 20, 2026