Ravindra Bagale · Data Scienceसर्व coursesया course चे lessonsशोधाEnglish

Data Science · मराठी आवृत्ती

15.1 प्रश्नाप्रमाणे chart निवडा

रवींद्र बागले यांच्या course वर आधारित · सहज मराठीत explanation

प्रश्नChart
Cities चा GMV compare करायचाSorted bar
दिवस किंवा तासानुसार trendLine
Delivery minutes कसे पसरले आहेत?Histogram किंवा box
Statuses चा वाटाStacked bar; किंवा काळजीपूर्वक वापरलेला, जास्तीत जास्त 3–4 slices चा pie
City × statusGrouped 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()