<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kelechi Uzoukwu on Medium]]></title>
        <description><![CDATA[Stories by Kelechi Uzoukwu on Medium]]></description>
        <link>https://medium.com/@kelechiuzoukwu?source=rss-39e5b340587------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KeP6RCzuakZjgB09eGpffQ@2x.jpeg</url>
            <title>Stories by Kelechi Uzoukwu on Medium</title>
            <link>https://medium.com/@kelechiuzoukwu?source=rss-39e5b340587------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:56:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kelechiuzoukwu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Customer Churn Analysis Using SQL]]></title>
            <link>https://medium.com/@kelechiuzoukwu/customer-churn-analysis-using-sql-6d76aea42c88?source=rss-39e5b340587------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d76aea42c88</guid>
            <category><![CDATA[customer-churn]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kelechi Uzoukwu]]></dc:creator>
            <pubDate>Sat, 11 Mar 2023 12:32:15 GMT</pubDate>
            <atom:updated>2023-04-12T12:19:32.601Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why are customers leaving Maven Telecom?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uWG6IGpTKRGARf2T" /><figcaption>Photo by <a href="https://unsplash.com/ja/@tar1k?utm_source=medium&amp;utm_medium=referral">Tarik Haiga</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The telecom industry is highly competitive, and customers have a wide selection of options to choose from. Companies rely heavily on customer retention to ensure continued growth and success. However, losing customers, also known as churn, is inevitable in any industry. As a data analyst, my job is to provide an in-depth analysis of Maven Telecom’s churn dataset and to answer the following questions:</p><ul><li>What are the key drivers of churn?</li><li>Is the company losing high value customers? If so, how can they retain them?</li><li>What is the ideal profile of a churned customer?</li><li>What steps can Maven Telecom take to reduce churn?</li></ul><h4>Project Strategy</h4><p>I downloaded the dataset from <a href="https://www.mavenanalytics.io/data-playground">Maven Analytics</a> and it contained information about customer demographics, subscription plans and account records for Maven Telecom. I performed all data preparation and analysis using SQL (Azure Data Studio), and all the SQL codes will be provided below. The visualisations and dashboard were designed with Tableau and Figma respectively.</p><p>All important links to this project are included at the end of this article.</p><p>The main steps for this project are:</p><ul><li>Data Cleaning and Preparation</li><li>Exploratory Data Analysis</li><li>Building the Ideal Churn Profile</li><li>Data Insights</li><li>Customer Retention Strategies</li><li>Data Visualisation</li></ul><h4>Data Cleaning and Preparation</h4><p>There are bound to be null values in this dataset because all customers have unique combinations of subscription preferences. Therefore, the presence of null values in my analysis is a deliberate and informed decision that allows me to provide a more nuanced and complete understanding of Maven’s customer base.</p><p>I checked for duplicate values in the unique key (Customer_ID), and found none.</p><pre>--Check for duplicates--<br>SELECT Customer_ID, COUNT( Customer_ID ) as count<br>FROM dbo.churn2<br>GROUP BY Customer_ID<br>HAVING count(Customer_ID) &gt; 1;<br><br>-- Find total number of customers<br>SELECT<br>COUNT(DISTINCT Customer_ID) AS customer_count<br>FROM<br>dbo.churn2;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*jkTG_Lm7t96eGxosFpIazA.png" /></figure><h4>Exploratory Analysis</h4><p>There are 7043 customers in total</p><ol><li><strong>How much revenue was lost to churned customers?</strong></li></ol><p>Maven lost 1869 customers and they accounted for 17% of Maven’s total revenue. It’s a pretty significant figure and we’ll investigate why they’re leaving later on in this article.</p><pre>-- How much revenue did Maven lose to churned customers?<br>SELECT Customer_Status, <br>COUNT(Customer_ID) AS customer_count,<br>ROUND((SUM(Total_Revenue) * 100.0) / SUM(SUM(Total_Revenue)) OVER(), 1) AS Revenue_Percentage <br>FROM dbo.churn2<br>GROUP BY Customer_Status;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TynkVXRssx5dTQOwYvThNA.png" /><figcaption>SQL code by author</figcaption></figure><p><strong>2. What’s the typical tenure for churned customers?</strong></p><p>To find out how long customers typically stay at Maven before leaving, I used the CASE statement in SQL. The CASE statement creates a derived column (Tenure) and groups customers who leave the company in 12 months or less as ‘12 months’ etc.</p><p>I found that <strong>~42%</strong> of churned customers spent <strong>6 months or less </strong>at Maven before leaving.</p><p>Almost half of the customers who churned had a relatively short tenure with the company, so there are opportunities for Maven to improve customer retention among newer customers.</p><pre>-- Typical tenure for churners<br>SELECT<br>    CASE <br>        WHEN Tenure_in_Months &lt;= 6 THEN &#39;6 months&#39;<br>        WHEN Tenure_in_Months &lt;= 12 THEN &#39;1 Year&#39;<br>        WHEN Tenure_in_Months &lt;= 24 THEN &#39;2 Years&#39;<br>        ELSE &#39;&gt; 2 Years&#39;<br>    END AS Tenure,<br>    ROUND(COUNT(Customer_ID) * 100.0 / SUM(COUNT(Customer_ID)) OVER(),1) AS Churn_Percentage<br>FROM<br>dbo.churn2<br>WHERE<br>Customer_Status = &#39;Churned&#39;<br>GROUP BY<br>    CASE <br>        WHEN Tenure_in_Months &lt;= 6 THEN &#39;6 months&#39;<br>        WHEN Tenure_in_Months &lt;= 12 THEN &#39;1 Year&#39;<br>        WHEN Tenure_in_Months &lt;= 24 THEN &#39;2 Years&#39;<br>        ELSE &#39;&gt; 2 Years&#39;<br>    END<br>ORDER BY<br>Churn_Percentage DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*JiMHC7uVQc7_737iGkClGg.png" /><figcaption>SQL code by author</figcaption></figure><p><strong>3. Which cities had the highest churn rates?</strong></p><p>Churn rate measures the percentage of customers who stop using the services of a company over a certain period of time.</p><p>For the purpose of this analysis, I only considered cities with more than 30 customers in total, because some cities had very few customers and my conclusion would have been biased towards them.</p><p><strong>San Diego</strong> had the highest churn rate at <strong>65%</strong>, which means that over half of their customers have left the company.</p><pre>-- Which cities have the highest churn rates?<br>SELECT<br>    TOP 4 City,<br>    COUNT(Customer_ID) AS Churned,<br>    CEILING(COUNT(CASE WHEN Customer_Status = &#39;Churned&#39; THEN Customer_ID ELSE NULL END) * 100.0 / COUNT(Customer_ID)) AS Churn_Rate<br>FROM<br>    dbo.churn2<br>GROUP BY<br>    City<br>HAVING<br>    COUNT(Customer_ID)  &gt; 30<br>AND<br>    COUNT(CASE WHEN Customer_Status = &#39;Churned&#39; THEN Customer_ID ELSE NULL END) &gt; 0<br>ORDER BY<br>    Churn_Rate DESC;<br><br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*wXG5am2Lvgs42dDoQP6IIQ.png" /><figcaption>SQL code by author</figcaption></figure><p><strong>4. What are the general reasons for churn?</strong></p><p><strong>45% </strong>of churned customers stated<strong> ‘Competitor’</strong> as their reason for leaving. It’s interesting to note that a significant number of customers <strong>(17%)</strong> left due to the <strong>attitude</strong> of support staff. Maven also lost about <strong>$1.7 million</strong> to <strong>Competitors</strong>, making it the most expensive type of churn.</p><pre>-- Why did customers leave?<br>SELECT <br>  Churn_Category,  <br>  ROUND(SUM(Total_Revenue),0)AS Churned_Rev,<br>  CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS Churn_Percentage<br>FROM <br>  dbo.churn2<br>WHERE <br>    Customer_Status = &#39;Churned&#39;<br>GROUP BY <br>  Churn_Category<br>ORDER BY <br>  Churn_Percentage DESC; <br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*eVYJ0CduabUukCvfjHT7PQ.png" /><figcaption>SQL code by author</figcaption></figure><p><strong>5a. Specific reasons for churn</strong></p><p>The top 3 reasons for churn are ‘Competitor made <strong>better offer</strong>’, ‘Competitor had <strong>better devices</strong>’ and ‘<strong>Attitude</strong> of support person’.</p><pre>-- why exactly did customers churn?<br>SELECT TOP 5<br>    Churn_Reason,<br>    Churn_Category,<br>    ROUND(COUNT(Customer_ID) *100 / SUM(COUNT(Customer_ID)) OVER(), 1) AS churn_percentage<br>FROM<br>    dbo.churn2<br>WHERE<br>    Customer_Status = &#39;Churned&#39;<br>GROUP BY <br>Churn_Reason,<br>Churn_Category<br>ORDER BY churn_percentage DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyZN0cmGUFJbIIZGfnaBpA.png" /><figcaption>SQL code by author</figcaption></figure><p><strong>5b. What offers did churned customers have?</strong></p><p>56% of churners did not have any promotional offer while 23% had <strong>Offer E</strong>. Offers are a great way to reward and retain your loyal customers.</p><pre>-- What offers did churners have?<br>SELECT  <br>    Offer,<br>    ROUND(COUNT(Customer_ID) * 100.0 / SUM(COUNT(Customer_ID)) OVER(), 1) AS churned<br>FROM<br>    dbo.churn2<br>WHERE<br>    Customer_Status = &#39;Churned&#39;<br>GROUP BY<br>Offer<br>ORDER BY <br>churned DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*3WaqzWeWNK_UFJZflbqAtA.png" /><figcaption>SQL code by author</figcaption></figure><p><strong>5c. What internet type did churners have?</strong></p><p><strong>66%</strong> of all churned customers used <strong>Fiber Optic</strong>. While ~<strong>70%</strong> of customers who left for competitors also used <strong>Fiber Optic</strong>. Maven should review the quality and service of their Fiber Optic internet, as this could be the reason customers are leaving to competitors.</p><pre>-- What Internet Type did churners have?<br>SELECT<br>    Internet_Type,<br>    COUNT(Customer_ID) AS Churned,<br>    ROUND(COUNT(Customer_ID) * 100.0 / SUM(COUNT(Customer_ID)) OVER(), 1) AS Churn_Percentage<br>FROM<br>    dbo.churn2<br>WHERE <br>    Customer_Status = &#39;Churned&#39;<br>GROUP BY<br>Internet_Type<br>ORDER BY <br>Churned DESC;<br><br>-- What Internet Type did &#39;Competitor&#39; churners have?<br>SELECT<br>    Internet_Type,<br>    Churn_Category,<br>    ROUND(COUNT(Customer_ID) * 100.0 / SUM(COUNT(Customer_ID)) OVER(), 1) AS Churn_Percentage<br>FROM<br>    dbo.churn2<br>WHERE <br>    Customer_Status = &#39;Churned&#39;<br>    AND Churn_Category = &#39;Competitor&#39;<br>GROUP BY<br>Internet_Type,<br>Churn_Category<br>ORDER BY Churn_Percentage DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*QYja6ikO8QS8XqTTczhQYQ.png" /><figcaption>Internet type for Churned customers</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*b4k-wI6csXlzLzLfupTvQw.png" /><figcaption>Internet type for Churned ‘Competitor’ customers</figcaption></figure><p><strong>5d. Did churners have premium tech support?</strong></p><p><strong>77%</strong> of churned customers did <strong>not</strong> have premium tech support. It’s possible that this service could have improved their after-sales experience and reduced churn.</p><pre>-- Did churners have premium tech support?<br>SELECT <br>    Premium_Tech_Support,<br>    COUNT(Customer_ID) AS Churned,<br>    ROUND(COUNT(Customer_ID) *100.0 / SUM(COUNT(Customer_ID)) OVER(),1) AS Churn_Percentage<br>FROM<br>    dbo.churn2<br>WHERE <br>    Customer_Status = &#39;Churned&#39;<br>GROUP BY Premium_Tech_Support<br>ORDER BY Churned DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*1z5YPtKjVP955hTXveCo3w.png" /><figcaption>SQL code by author</figcaption></figure><p><strong>5e. What contract were churners on?</strong></p><p>Almost all churned customers (89%) were on the <strong>month-to-month</strong> contract.</p><p>Customers on a month-to-month contract are more likely to churn, as they have greater flexibility to cancel or switch providers without incurring any penalty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*_aCQeeiN9fvc7JB3PRMrmg.png" /></figure><pre>-- What contract were churners on?<br>SELECT <br>    Contract,<br>    COUNT(Customer_ID) AS Churned,<br>    ROUND(COUNT(Customer_ID) * 100.0 / SUM(COUNT(Customer_ID)) OVER(), 1) AS Churn_Percentage<br>FROM <br>    dbo.churn2<br>WHERE<br>    Customer_Status = &#39;Churned&#39;<br>GROUP BY<br>    Contract<br>ORDER BY <br>    Churned DESC;</pre><p>The <strong>key churn indicators </strong>are therefore:</p><ul><li><strong>Contract</strong>: 89% of churned customers were on the month-to-month contract</li><li><strong>Premium Tech Support</strong>: 77% of churners did not have premium tech support</li><li><strong>Internet Type:</strong> 66% of churners used Fiber Optic internet</li><li><strong>Offer:</strong> 56% of churners did not have any promotional offers, while 23% had Offer E.</li></ul><p><strong>6. Are high value customers at risk of churning?</strong></p><p>I defined high value customers based on these factors and grouped them into 3 risk levels (High, Medium, Low):</p><p>. <strong>Tenure</strong>: This is a measure of loyalty, so I only considered customers that have been with the company for at least 9 months.</p><p>. <strong>Monthly Charge</strong>: If the customer’s total monthly charge is in the top 50th percentile.</p><p><strong>. Referrals: </strong>customers who refer other customers to the business.</p><p>High-value customers with 3–4 churn indicators are <strong>High Risk</strong>, while <strong>Medium Risk</strong> customers have 2 and <strong>Low Risk</strong> customers have only 1. For instance, a high-value customer at high risk of churning may use fiber optic, have a month-to-month contract, and no promotional offers or premium tech support.</p><pre>-- (TABLEAU)who are the high value customers that stayed? --<br><br>COUNTD(<br>IF [Monthly Charge] &gt; {FIXED: PERCENTILE([Monthly Charge], 0.5)}<br>AND [Number of Referrals] &gt; 0 <br>AND [Customer Status] = &#39;Stayed&#39; <br>AND [Tenure in Months] &gt; 9<br>THEN ([Customer ID]) <br>END)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*XP-0nIH8ghMpuAO9fKa0Sg.png" /><figcaption>Churn risk assessment for high value customers</figcaption></figure><ul><li>High-value customers are churning at a rate of <strong>23%</strong></li><li>Based on the key churn indicators/drivers, out of <strong>1250 </strong>high-value customers who stayed, <strong>77% </strong>are at <strong>high risk</strong> of churning.</li></ul><p><strong>7. Building the ideal churn customer profile</strong></p><p>I built a simple churn profile using the key churn indicators I discussed in previous sections, and the churn demographic results below:</p><ul><li><strong>32%</strong> of churned customers are <strong>above</strong> <strong>60</strong> years old</li><li><strong>~50%</strong> of churned customers are <strong>Female</strong></li><li><strong>64%</strong> of churned customers are <strong>Single</strong></li><li><strong>94%</strong> of churned customers have <strong>no dependents</strong> in their household; it’s possible they have more flexibility and fewer commitments, making it easier for them to switch providers or cancel their subscription.</li></ul><p>You can view the sql codes for the demographic results <a href="https://github.com/kelechiu/Maven-Churn-Analysis-SQL/blob/92719c0c458fac6ec78c283c6540948b8dbd7934/maven%20churn.sql">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*O7AGV0yfHlW4k-F7wvtD2Q.png" /><figcaption>Churn profile by Kelechi Uzoukwu</figcaption></figure><h4>8. Insights</h4><ul><li>Maven has 1869 churned customers and 20% of them are high-value customers.</li><li>42% of churned customers only stayed for 6 months or less.</li><li>The top 3 reasons for churn are competitors made better offers, competitors had better devices and attitude of support staff.</li><li>Maven lost ~$1.7 million to competitors, making it the most expensive type of churn</li><li>The key indicators of churn are Month-to-Month contract , No Premium Tech Support, Fiber Optic internet, No promotional offer and Offer E.</li><li>70% of customers who churned to competitors used Fiber Optic</li><li>High value customers are churning at a rate of 23%</li><li>Based on the key churn indicators, out of 1250 high-value customers remaining, 77%<strong> </strong>are at high risk of churning.</li></ul><h4>9. Customer Retention Strategies</h4><ul><li><strong>Loyalty Programs:</strong> Since the top reason for churn is ‘<strong>competitors making better offers’</strong> , and more than half of churned customers did not have any promotional offers, Maven could implement different loyalty programs to retain their customers. For instance, they could reward customers on long-term contracts with discounted rates, free upgrade, or additional features.</li><li><strong>Improve Customer Support:</strong> Invest in training and development of support staff to ensure they provide excellent customer service. This could include regular coaching and feedback sessions, as well as incentives for staff who receive positive customer feedback.</li><li><strong>Make better devices:</strong> Evaluate the features, performance and pricing of your devices to ensure they are in line with market standards and demand.</li><li><strong>Premium Tech Support: </strong>Since customers who did not have access to premium tech support were more likely to churn, Maven should consider offering this service to all customers.</li><li><strong>Improve Fiber Optic Service:</strong> Invest in improving your Fiber Optic offerings like faster speeds, more stable connections, and better customer support for Fiber Optic customers.</li><li><strong>Engage High-Value Customers:</strong> Prioritise engaging these customers to prevent them from leaving. Provide personalised offers, send targeted communications, and provide premium tech support to ensure these customers remain satisfied with their service.</li><li><strong>After-Sales Service: </strong>Schedule regular check-ins with customers to ensure they are still satisfied with their service. These check-ins could be in the form of surveys, phone calls, or email communications.</li></ul><h4>10. Final Dashboard (Tableau &amp; Figma)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u2YH_jQWOC3rtz6JM6od2g.png" /><figcaption>Dashboard by Kelechi Uzoukwu</figcaption></figure><p>Thanks for reading!</p><h4>Relevant Links</h4><p><a href="https://public.tableau.com/app/profile/kelechi.uzoukwu">Tableau dashboard</a></p><p><a href="https://github.com/kelechiu/Maven-Churn-Analysis-SQL/blob/main/maven%20churn.sql">Github repository</a></p><p><a href="http://linkedin.com/in/kelechi-uzoukwu">Linkedin</a></p><p><a href="https://www.kelechiuzoukwu.com/">Portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d76aea42c88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[E-Commerce Sales Analysis using Python]]></title>
            <link>https://medium.com/@kelechiuzoukwu/superstore-sales-analysis-with-python-ee971d45ba9a?source=rss-39e5b340587------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee971d45ba9a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kelechi Uzoukwu]]></dc:creator>
            <pubDate>Thu, 15 Sep 2022 11:10:18 GMT</pubDate>
            <atom:updated>2023-04-12T12:19:21.521Z</atom:updated>
            <content:encoded><![CDATA[<h4>Regional Data Analysis using Python, Tableau and Figma</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eOV4NikCJkSC_VqS" /><figcaption>Photo by <a href="https://unsplash.com/@tmwd?utm_source=medium&amp;utm_medium=referral">Artem Gavrysh</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Problem Statement</h3><p>Superstore’s products are grouped into Furniture, Office Supplies and Technology while its customers are either Consumer, Corporate or Home Office. The aim of this project is to provide an in-depth analysis of their sales data and to answer the following questions:</p><p>· What sub-categories generate the most/least revenue and profit?</p><p>· What products are the most/least profitable?</p><p>· What states generate the most sales and profit?</p><p>· What are our customers’ purchasing habits?</p><h3>Project Strategy</h3><p>The superstore dataset was downloaded from Kaggle and the Python libraries used on this project were Pandas, Matplotlib and Seaborn. The dashboard was designed with Tableau and Figma.</p><p>The main steps for this project are summarized in the flowchart below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CZTKqdCotWaCyWW_B_wiw.png" /><figcaption>Flow chart by Author</figcaption></figure><h3><strong>Data Cleaning</strong></h3><p>This involves manipulating the dataset, removing duplicates and handling null/missing values.</p><p>I loaded the data in Python as a pandas dataframe and proceeded to prepare it for further analysis.</p><p>The first step was to import the required libraries and read the dataset as a pandas dataframe:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-c9ece%2Fv%2F1%26cellId%3D0-1&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-c9ece%2Fv%2F1%26cellId%3D0-1&amp;image=https%3A%2F%2Fapi.jovian.ai%2Fapi%2Fgist%2Fc9ece93acc7f4c2a801d900af8bd2a0e%2Fpreview%2F40c2a488d9d24df1961fdc393ccbd208&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea3ac8dbd4373f968fda12f171bb3d93/href">https://medium.com/media/ea3ac8dbd4373f968fda12f171bb3d93/href</a></iframe><p>In the table above, you can easily see there are numerical, categorical, and geographical variables.</p><p>Each row represents an order of an item and the corresponding quantity, sales, profit, discount, ship mode, etc.</p><p>The second column ‘Unnamed’ is a repetition of the first, so I removed it:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-353ba%2Fv%2F1%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-353ba%2Fv%2F1%26cellId%3D3&amp;image=https%3A%2F%2Fapi.jovian.ai%2Fapi%2Fgist%2F353bac4839bc4016ad5fefafae4aab1e%2Fpreview%2Fa036bd36166c44fd83fac0282bad9a2d&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f11d696c56a0d0305a91128dbc91489a/href">https://medium.com/media/f11d696c56a0d0305a91128dbc91489a/href</a></iframe><p>The next step is to get more information about the dataset using the df.shape() and df.info() functions.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-4da9c%2Fv%2F1%26cellId%3D4-5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-4da9c%2Fv%2F1%26cellId%3D4-5&amp;image=https%3A%2F%2Fapi.jovian.ai%2Fapi%2Fgist%2F4da9c7b5e9e2470eb53368041fe78f0d%2Fpreview%2F70fc016c191147eeb210ae9c69c8886c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/37fcb8f5f03a12aa57c8ef0528cfa711/href">https://medium.com/media/37fcb8f5f03a12aa57c8ef0528cfa711/href</a></iframe><p>There are 9,994 rows including the header and 19 columns. The data type is correct and matches the corresponding values.</p><h4><strong>Handling Null Values and NAN</strong></h4><p>A null value is used when the value in a column is missing or unknown. NaN stands for Not A Number and is used to represent the missing value in a dataset.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttp%3A%2F%2Fjovian.ml%2Fkelechiu%2Fsuperstore-analysis-43d93%2Fv%2F1%26cellId%3D6-7&amp;dntp=1&amp;display_name=Jovian&amp;url=http%3A%2F%2Fjovian.ml%2Fkelechiu%2Fsuperstore-analysis-43d93%2Fv%2F1%26cellId%3D6-7&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab996009a6f22c7927f0f611b491a09b/href">https://medium.com/media/ab996009a6f22c7927f0f611b491a09b/href</a></iframe><p>The results show that the dataset does not have any null or NAN values.</p><h4><strong>Duplicate Values</strong></h4><p>I checked for duplicate values, found 1 row of duplicated data and removed it. The number of rows dropped from 9994 to 9993 which confirmed the duplicate had been removed.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-43d93%2Fv%2F1%26cellId%3D8-10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-43d93%2Fv%2F1%26cellId%3D8-10&amp;image=https%3A%2F%2Fapi.jovian.ai%2Fapi%2Fgist%2F43d939bd9a95485494157acc29dae80c%2Fpreview%2Fbafe8bec7c4e41cb824d1f24cb77a4d2&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d73087df9dd8a8a6486cf7b4e613bc9/href">https://medium.com/media/8d73087df9dd8a8a6486cf7b4e613bc9/href</a></iframe><h4><strong>Calculated Field</strong></h4><p>The last step in my Data Cleaning process was to create a new column for profit margin because I needed it in my analysis.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-43d93%2Fv%2F1%26cellId%3D11&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-43d93%2Fv%2F1%26cellId%3D11&amp;image=https%3A%2F%2Fapi.jovian.ai%2Fapi%2Fgist%2F43d939bd9a95485494157acc29dae80c%2Fpreview%2Fbafe8bec7c4e41cb824d1f24cb77a4d2&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/faf6c1759f9dc4bc6befa941853913fc/href">https://medium.com/media/faf6c1759f9dc4bc6befa941853913fc/href</a></iframe><h4><strong>Exploratory Data Analysis</strong></h4><p>The dataset is now prepped for analysis, so let’s answer some business questions.</p><ol><li><strong>What (Sub)Categories generate the most/least revenue and profit</strong></li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-37cf5%2Fv%2F1%26cellId%3D18&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fkelechiu%2Fsuperstore-analysis-37cf5%2Fv%2F1%26cellId%3D18&amp;image=https%3A%2F%2Fapi.jovian.ai%2Fapi%2Fgist%2F37cf590a0b48428f9cf2436ac7131456%2Fpreview%2F9ee5a84171c348a09f514b55e4614a58&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/82fafac791f00c9b7fac87a4fe62f94b/href">https://medium.com/media/82fafac791f00c9b7fac87a4fe62f94b/href</a></iframe><p>-Phones and Chairs generated the most revenue, both accounting for 29% of the Total Sales. Fasteners and Labels generated the least revenue.</p><p>-The least profitable sub-category is Tables with a net loss of ($18,000). It’s important to note that loss-making sales like Tables, Bookcases and Supplies make up 16% of total sales.</p><p>-60% of all orders are for Office Supplies and 26% of those are for Binders.</p><p><strong>2)</strong> <strong>What products are the most/least profitable</strong></p><p>Canon ImageClass Copier is the best-selling and most profitable product while Cubify CubeX 3D Printers and Lexmark Laser Printer are the least profitable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Erpzqf3bxwWALCqa_6Bf4Q.png" /><figcaption>Image by author (Tableau)</figcaption></figure><p><strong>3) What states generate most/least sales and profit</strong></p><p>-California and New York had the highest sales and profit, accounting for 64% of Superstore’s total sales and 66% of Superstore’s total profit.</p><p>-The states with the least profit are North Dakota and West Virginia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUX3FaM3sIBJC5neG7Lc3Q.png" /><figcaption>Image by author (Tableau)</figcaption></figure><p><strong>4) What are our customers&#39; purchasing habits</strong></p><p>For the purpose of this analysis, I will refer to Active Customers as those that have placed orders in the last 30 days.</p><p>- Of all 693 total customers, 75% have ordered at least 5 times and 11% have ordered more than 10 times</p><p>- Only 23% of customers are active and have made purchases in the last 30 days</p><p>- A total of 55 new customers were gained in the past year</p><p>- Of all 5009 total orders, only 12 are one-off orders</p><p>- 60% of all orders are Office Supplies</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qu-7l3kVRJgKl62odqhgXw.png" /><figcaption>customer’s purchasing habits (Image by author)</figcaption></figure><h4><strong>Recommendations</strong></h4><p>- Create a Home Office package with both high-selling categories like Phones and Chairs and less profitable products like Tables and Bookcases to offset losses.</p><p>-Consider increasing the price of Tables as it’s a high-selling product. However, Bookcases and Supplies could be either dropped from the product list or negotiated with suppliers for a cheaper price.</p><p>-Customer Success teams should target inactive customers to drive sales and marketing goals. Special discounts on their favorite products can be offered to retain the relationship and prevent churn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2mkejeabgLuaAe1Ro-mclg.png" /><figcaption>Tableau dashboard by Kelechi Uzoukwu</figcaption></figure><p>Click <a href="https://public.tableau.com/views/superstore_16584224668910/Dashboard12?:language=en-GB&amp;:display_count=n&amp;:origin=viz_share_link">here</a> to view the interactive dashboard.</p><p>Thanks for reading!</p><p><strong>Important Links</strong></p><p><a href="https://public.tableau.com/views/superstore_16584224668910/Dashboard12?:language=en-GB&amp;:display_count=n&amp;:origin=viz_share_link">Tableau Dashboard</a></p><p><a href="https://github.com/kelechiu?tab=repositories">Github Repository</a></p><p><a href="https://www.kelechiuzoukwu.com/">Portfolio</a></p><p><a href="http://linkedin.com/in/kelechi-uzoukwu">Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee971d45ba9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>