कैम्पेन के लिए रिटेंशन रेट का विश्लेषण
अब जबकि आपने total subscribers और retained subscribers निकाल लिए हैं, आप यह तय कर सकते हैं कि किस चैनल का retention rate सबसे अधिक था.
इस अभ्यास में, आप प्रत्येक subscription चैनल के लिए retention rate की गणना करेंगे और अपने परिणामों को visualize करेंगे.
यह अभ्यास पाठ्यक्रम का हिस्सा है
pandas के साथ मार्केटिंग कैंपेनों का विश्लेषण
अभ्यास निर्देश
retention_subsकोretention_totalसे विभाजित करें ताकि date subscribed के अनुसार subscribing चैनल का retention rate मिल सके.- शीर्षक
'Retention Rate by Subscribing Channel'जोड़ें. - x-axis और y-axis के लेबल क्रमशः
'Date Subscribed'और'Retention Rate (%)'रखें. - legend को
upper rightमें रखें और प्लॉट दिखाएँ.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Divide retained subscribers by total subscribers
retention_rate = ____/____
retention_rate_df = pd.DataFrame(retention_rate.unstack(level=1))
# Plot retention rate
retention_rate_df.plot()
# Add a title, x-label, y-label, legend and display the plot
____
____
____
____
plt.show()