Data Visualisation with Python · Course lab · about 120 minutes · 6 tasks · marked out of 100, pass at 60
Turn a messy sales table into three charts that make an argument
The situation
A clothing brand in Karachi has twelve months of sales across four cities and five product lines. The founder shows investors a dashboard of fifteen default charts and they leave confused. She needs three charts that each make one clear point, and she wants to know you can find the story before you draw it.
Explore the data to find the argument, then build three honest, readable charts.
What you'll be able to show
- Write the claim a chart makes before drawing it
- Choose the right library and chart type for each point
- Strip a chart to what carries information
- Use charts to explore, then deliver only the few that argue
What you need
- Python with pandas, matplotlib and seaborn, in any notebook
- A sales dataset you build: month, city, product_line, revenue, units, for twelve months
Tasks
-
1Build the data
Create at least 240 rows (12 months x 4 cities x 5 lines) with revenue and units. Put a real story in it on purpose: one city declining, one product line rising sharply, one month that is an outlier.A correct result: The dataset and a note of the three patterns you planted. -
2Explore first
Plot the distribution of revenue and units, and a simple trend per city. These are for you, not the report. Write down what you actually found, including whether your planted story is the clearest one.A correct result: The exploratory charts and a short paragraph of what the data shows. -
3Write the three claims
Decide the three sentences your report will make, each backed by one chart. Each must be a claim, not a topic ('Lahore revenue fell every quarter', not 'Lahore sales').A correct result: Three claim sentences. -
4Draw them honestly
Build one chart per claim, choosing the type and library deliberately. Order bars by value, start axes at zero where a bar chart requires it, and label directly rather than relying on a legend.A correct result: Three charts, each matching its claim, with a note on why you chose each type. -
5Strip each one
Remove everything that carries no information: unused gridlines, borders, duplicate legends, excess decimals. Put the claim sentence as the title of each chart.A correct result: The before-and-after of one chart and the final three with sentence titles. -
6Deliver as an argument
Arrange the three in an order that builds, with the finding written beside each. Show it to someone without explaining, and note every point where they hesitated.A correct result: The three-chart report and a list of the hesitations you observed.
What to hand in
The notebook with the exploration, the three claims, the final three charts with sentence titles in a built order, and the notes from watching someone read it.
How it is marked
| Criterion | Points |
|---|---|
| Data built with a real story planted | 10 |
| Explored first and the actual story written down | 20 |
| Three claims written as claims, not topics | 20 |
| Charts honest, well chosen and labelled directly | 25 |
| Stripped to information and delivered as an ordered argument | 25 |
| Total · pass at 60 | 100 |
صورتحال
کراچی کا ایک کپڑوں کا برانڈ چار شہروں اور پانچ پروڈکٹ لائنوں میں بارہ مہینے کی فروخت رکھتا ہے۔ بانی سرمایہ کاروں کو پندرہ ڈیفالٹ چارٹ کا ڈیش بورڈ دکھاتی ہیں اور وہ الجھے ہوئے چلے جاتے ہیں۔ انہیں تین ایسے چارٹ چاہییں جو ہر ایک ایک واضح بات کہے، اور وہ جاننا چاہتی ہیں کہ آپ چارٹ بنانے سے پہلے کہانی ڈھونڈ سکتے ہیں۔
دلیل ڈھونڈنے کے لیے ڈیٹا کو کھنگالیں، پھر تین ایمان دار، پڑھنے لائق چارٹ بنائیں۔
آپ کیا دکھا سکیں گے
- چارٹ بنانے سے پہلے وہ دعویٰ لکھنا جو چارٹ کرتا ہے
- ہر بات کے لیے درست لائبریری اور چارٹ کی قسم چننا
- چارٹ کو صرف اس تک محدود کرنا جو معلومات رکھے
- چارٹ کھوج کے لیے استعمال کرنا، پھر صرف وہ چند دینا جو دلیل دیں
آپ کو کیا چاہیے
- Python کے ساتھ pandas، matplotlib اور seaborn، کسی بھی نوٹ بک میں
- ایک فروخت ڈیٹاسیٹ جو آپ بناتے ہیں: month، city، product_line، revenue، units، بارہ مہینوں کے لیے
کام
-
1ڈیٹا بنائیں
کم از کم 240 قطاریں (12 مہینے × 4 شہر × 5 لائنیں) revenue اور units کے ساتھ بنائیں۔ اس میں جان بوجھ کر ایک اصلی کہانی رکھیں: ایک شہر گرتا ہوا، ایک پروڈکٹ لائن تیزی سے بڑھتی ہوئی، ایک مہینہ جو غیر معمولی ہو۔درست نتیجہ: ڈیٹاسیٹ اور آپ کے رکھے گئے تین پیٹرن کا نوٹ۔ -
2پہلے کھوجیں
revenue اور units کی تقسیم، اور ہر شہر کا سادہ رجحان بنائیں۔ یہ آپ کے لیے ہیں، رپورٹ کے لیے نہیں۔ جو واقعی ملا وہ لکھیں، بشمول یہ کہ آپ کی رکھی کہانی سب سے واضح ہے یا نہیں۔درست نتیجہ: کھوج کے چارٹ اور ڈیٹا کیا دکھاتا ہے اس کا مختصر پیراگراف۔ -
3تین دعوے لکھیں
طے کریں آپ کی رپورٹ کون سے تین جملے کہے گی، ہر ایک کے پیچھے ایک چارٹ۔ ہر ایک دعویٰ ہو، موضوع نہیں ('لاہور کی آمدنی ہر سہ ماہی گری'، 'لاہور کی فروخت' نہیں)۔درست نتیجہ: تین دعوے کے جملے۔ -
4انہیں ایمان داری سے بنائیں
ہر دعوے کے لیے ایک چارٹ بنائیں، قسم اور لائبریری سوچ کر چنتے ہوئے۔ بارز کو قدر کے لحاظ سے ترتیب دیں، جہاں bar chart کو ضرورت ہو وہاں axis صفر سے شروع کریں، اور legend پر انحصار کے بجائے براہِ راست لیبل لگائیں۔درست نتیجہ: تین چارٹ، ہر ایک اپنے دعوے سے ملتا، اور ہر قسم چننے کی وجہ کا نوٹ۔ -
5ہر ایک کو چھانٹیں
ہر وہ چیز ہٹائیں جو معلومات نہیں رکھتی: غیر استعمال شدہ gridlines، borders، دہرے legend، فالتو اعشاریے۔ دعوے کا جملہ ہر چارٹ کا عنوان بنائیں۔درست نتیجہ: ایک چارٹ کا پہلے اور بعد اور جملہ عنوان والے آخری تین۔ -
6دلیل کے طور پر دیں
تینوں کو ایسی ترتیب میں رکھیں جو بنتی جائے، ہر ایک کے ساتھ نتیجہ لکھا ہو۔ کسی کو بغیر سمجھائے دکھائیں، اور ہر وہ مقام نوٹ کریں جہاں وہ رکے۔درست نتیجہ: تین چارٹ کی رپورٹ اور دیکھنے والے کی جھجک کی فہرست۔
کیا جمع کروانا ہے
نوٹ بک جس میں کھوج، تین دعوے، جملہ عنوان والے آخری تین چارٹ ایک بنتی ترتیب میں، اور کسی کو پڑھتے دیکھنے کے نوٹ ہوں۔
نمبر کیسے ملیں گے
| معیار | نمبر |
|---|---|
| ڈیٹا بنا جس میں اصلی کہانی رکھی گئی | 10 |
| پہلے کھوجا اور اصل کہانی لکھی گئی | 20 |
| تین دعوے دعووں کے طور پر لکھے گئے، موضوعات نہیں | 20 |
| چارٹ ایمان دار، اچھی طرح چنے گئے اور براہِ راست لیبل شدہ | 25 |
| معلومات تک چھانٹے گئے اور ترتیب وار دلیل کے طور پر دیے گئے | 25 |
| کل · پاس 60 | 100 |
Hand in your lab
Create a free BvLogic ID to hand in your lab, get it marked, and have it on your certificate.
Create your BvLogic IDAlready have one? Sign in and this course will be added to it.