17. Practice Exercises with Answer Hints
17.5 Charts and Story
Exercise I. Horizontal bar of Delivered GMV by city; save PNG.
Hint I
groupby sum → sort_values → plot(kind="barh") → savefig.
Exercise J. Six-line manager story for fictional Diwali spike (no ML).
Hint J
Follow Chapter 15 template: headline, two evidences, caveat, ask.
Ravindra Bagale's Tip
Try Exercise I on your own for ten minutes before you open Hint I. With plot(kind="barh"), pandas draws the first row at the bottom, so sort with sort_values() in ascending order if you want the biggest city at the top. Save the chart with savefig, so your six-line story in Exercise J can point to that PNG.
Ravindra Bagale's Tip – मराठी
Hint I उघडण्याआधी Exercise I दहा minutes स्वतः करून पाहा. plot(kind="barh") मध्ये pandas पहिली row सगळ्यात खाली काढतो, म्हणून सगळ्यात मोठी city वर हवी असेल तर sort_values() ने चढत्या क्रमाने sort करा. Chart savefig ने save करा, म्हणजे Exercise J मधली सहा ओळींची story त्या PNG चा संदर्भ देऊ शकेल.
Ravindra Bagale's Tip – हिंदी
Hint I खोलने से पहले Exercise I को दस minutes खुद करके देखो। plot(kind="barh") में pandas पहली row को सबसे नीचे बनाता है, इसलिए सबसे बड़ी city ऊपर चाहिए तो sort_values() से बढ़ते क्रम में sort करो। Chart को savefig से save करो, ताकि Exercise J की छह लाइनों वाली story उस PNG का हवाला दे सके।
Practice task
Pick any three exercises, time yourself (25 minutes total), and paste outputs into your notebook with a short “what I struggled with” note.
Thodkyaat sangaycha tar (quick recap)
- Filter → groupby → merge → clean → dates → melt → chart → story
- Hints are scaffolds, not answer keys
Samajla ka? Aata pudhe jaauya interview questions and answers.