Data Science · मराठी आवृत्ती
15.1 प्रश्नाप्रमाणे chart निवडा
| प्रश्न | Chart |
|---|---|
| Cities चा GMV compare करायचा | Sorted bar |
| दिवस किंवा तासानुसार trend | Line |
| Delivery minutes कसे पसरले आहेत? | Histogram किंवा box |
| Statuses चा वाटा | Stacked bar; किंवा काळजीपूर्वक वापरलेला, जास्तीत जास्त 3–4 slices चा pie |
| City × status | Grouped bar / seaborn countplot hue |
Manager ला लगेच तुलना करता यावी म्हणून sorted horizontal bars वापरू:
# Sorted bars — easiest manager read
import matplotlib.pyplot as plt
import pandas as pd
gmv = pd.Series(
{"Pune": 220000, "Nashik": 140000, "Sambhaji Nagar": 80000,
"Nagpur": 90000, "Solapur": 70000, "Kolhapur": 65000}
).sort_values(ascending=True)
fig, ax = plt.subplots()
ax.barh(gmv.index, gmv.values)
ax.set_title("Where is fictional Oct GMV coming from?")
ax.set_xlabel("GMV (₹)")
plt.show()