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

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

13.3 ₹ axis लाखांमध्ये दाखवूया

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

या page मध्ये

मोठ्या amounts वाचायला सोप्या व्हाव्यात म्हणून ₹ आणि लाखांचं L असं formatting करूया:

from matplotlib.ticker import FuncFormatter

def inr_lakhs(x, pos):
    return f"₹{x/1e5:.1f}L"

fig, ax = plt.subplots()
ax.bar(gmv.index, gmv.values)
ax.yaxis.set_major_formatter(FuncFormatter(inr_lakhs))
ax.set_ylabel("GMV")
plt.xticks(rotation=30, ha="right")
fig.tight_layout()
plt.show()

Practice

त्याच GMV Series ला ascending sort करा आणि barh ने horizontal bar chart बनवा. figures/gmv_hbar.png म्हणून save करा.

Recap

पुढे seaborn पाहूया.