शुरू करेंमुफ़्त में शुरू करें

Ratios को प्लॉट करना

The gross margin ratio is an important profitability ratio that assesses a company's ability to earn profits from its sales. The asset turnover ratio is an important efficiency ratio that measures how efficiently a company is using its assets.

इस अभ्यास में, आप समय के साथ Microsoft का gross margin और asset turnover ratio प्लॉट करेंगे और निकालेंगे। इससे आप Microsoft के लिए इन ratios के रुझान को दृश्य रूप में देख पाएँगे: क्या ये ratios स्थिर हैं, समय के साथ बेहतर हो रहे हैं, अस्थिर हैं, या बिगड़ रहे हैं? आइए पता लगाएँ!

वीडियो में सीखा गए bar plot बनाने के लिए Seaborn इस्तेमाल करने के बजाय, यहाँ आप seaborn से line plot बनाएँगे। Seaborn के साथ line plot बनाने के लिए बस sns.barplot को sns.lineplot में बदलना होता है। बाकी arguments वही रहते हैं।

msft नाम का एक DataFrame, pd के रूप में pandas और sns के रूप में Seaborn पहले से लोड हैं। इस अभ्यास में किन कॉलम्स का उपयोग करना है, यह देखने के लिए आप कंसोल में print(msft.columns) चला सकते हैं।

यह अभ्यास पाठ्यक्रम का हिस्सा है

Python में Financial Statements का विश्लेषण

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Compute asset turnover ratio
msft["asset_turnover"] = msft[____] / msft[____]

# Compute gross margin ratio
msft["gross_margin"] = (____) / msft[____]
कोड संपादित करें और चलाएँ