<?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 Nnodi Precious on Medium]]></title>
        <description><![CDATA[Stories by Nnodi Precious on Medium]]></description>
        <link>https://medium.com/@preciousnnodi40?source=rss-7e84d8b06038------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PKLxS-whrVgKJmOKDYpLMQ.jpeg</url>
            <title>Stories by Nnodi Precious on Medium</title>
            <link>https://medium.com/@preciousnnodi40?source=rss-7e84d8b06038------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 15:59:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@preciousnnodi40/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[Unveiling Churn Drivers: Analyzing Customer Attrition with SQL]]></title>
            <link>https://medium.com/@preciousnnodi40/unveiling-churn-drivers-analyzing-customer-attrition-with-sql-93044315a8e?source=rss-7e84d8b06038------2</link>
            <guid isPermaLink="false">https://medium.com/p/93044315a8e</guid>
            <category><![CDATA[churn]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[telecom]]></category>
            <dc:creator><![CDATA[Nnodi Precious]]></dc:creator>
            <pubDate>Sat, 06 Apr 2024 15:05:10 GMT</pubDate>
            <atom:updated>2024-04-06T15:05:10.219Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gOAPvgw7mjEqVJ1i" /><figcaption>Photo by <a href="https://unsplash.com/@theandrewteoh?utm_source=medium&amp;utm_medium=referral">Andrew Teoh</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Gaining insight into what customers think about a product or service is one of the key elements that propel the growth of a company. By doing this, business owners can determine areas for development for their most valuable customers and strategies to optimize the services they provide to stop more customers from leaving by evaluating the retention rates of their customers.</p><p>This project intends to perform an extensive study on a telecom dummy dataset — Quantum Tech company, to comprehend the turnover profile of consumers, their primary causes of churning, and the factors in this respect.</p><p><strong>Project Methodology</strong></p><p>1. Defining the Problem Statement.</p><p>2. Getting the Data.</p><p>3. Data Cleaning and Pre-processing.</p><p>4. Exploratory Data Analysis.</p><p>5. Insight Extractions.</p><p>6. Data Visualization on Power BI.</p><p>7. Recommendation and Conclusion</p><p>8. Documentation and Sharing.</p><p><strong>Defining The Problem Statement:</strong></p><p>Underlying questions this project uncovers through this analysis include:</p><ul><li>What are the demographics of churned customers?</li><li>What are the key-drivers of churn among these people?</li><li>What steps can be taken to reduce churn and retain customers?</li></ul><p><strong>Getting The Data</strong></p><p>The data imported into the Microsoft SQL Server contained <strong>38 columns</strong>, which include but are not limited to client demographics, services, churn causes, and customer status. To activate the workspace and obtain a short preview of the dataset, the query below was executed:</p><pre>use Telecom;<br><br>select * from dbo.telecom_customer_churn;</pre><p><strong>Data Cleaning and Preprocessing</strong></p><p>This is a vital stage after a quick preview of the dataset, which checks for erroneous data types, missing values, anomalies, inaccurate headers, duplicate values, and other issues to prevent biases and misleading insights.</p><p>A query was run that returned none to check for duplicate values. This indicates that each customer entry was distinct. Nonetheless, null values were present in the Churn_Reason and Churn_Category columns. The missing values were changed to “n/a” because the columns were crucial to this study and could not be removed.</p><pre>SELECT Customer_ID, COUNT(Customer_ID) Count<br>FROM dbo.telecom_customer_churn<br>GROUP BY Customer_ID<br>HAVING COUNT(Customer_ID) &gt; 1  -- No output, meaning no duplicates.</pre><p><strong>Exploratory Data Analysis</strong></p><p>To identify the main causes of customer churn, this stage examined the telecom dataset to learn about the customer demographics, reasons, and service usage.</p><p>Based on the query below, there are 7043 observations in the dataset.</p><pre>select count(*)Customers <br>from dbo.telecom_customer_churn;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*9QNRIGI-JpiDsbMZjqxYzg.png" /><figcaption>Total entries in the database</figcaption></figure><p>a. <strong>What is the percentage of the customer status on Telecom database?</strong></p><p>Out of the total customers in the Quantum Tech database, <strong>27% </strong>churned from the service, <strong>68%</strong> have stayed and <strong>7%</strong> joined.</p><pre>SELECT Customer_Status, <br>COUNT(Customer_ID) AS Count,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS Rate <br>FROM dbo.telecom_customer_churn<br>GROUP BY Customer_Status;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*7FvAjiz4wOoDR8Nacaw2wg.png" /><figcaption>Percentage distribution of customers’ status</figcaption></figure><p>As the primary focus of this analysis, I then looked into the characteristics of these churned people to determine the contributing variables.</p><p>b. <strong>What is the percentage revenue distribution by the customer status?</strong></p><p><strong>82.5%</strong> of the money is generated by the <strong>68%</strong> of customers who stayed. However, the <strong>17.2%</strong> in revenue lost due to client churn shouldn’t be disregarded.</p><pre>SELECT <br>round(SUM(Total_Revenue),2) Total_revenue<br>FROM dbo.telecom_customer_churn; </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*NO2a8FNtTbl8hEZtRTFY7Q.png" /><figcaption>Revenue Percentage of customers</figcaption></figure><p>Moving forward, this EDA was streamlined to the churned customers, first understanding the demographics, then in-depth analysis of services and other features.</p><p><strong>c. Which gender churned more?</strong></p><p>With a figure of <strong>50.24%</strong>, the female gender churns more frequently than the male. Clients churned regardless of gender, making is less of a factor.</p><pre>SELECT gender,<br>COUNT(Customer_ID) AS Count,<br>ROUND((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER(),2) AS Churn_Rate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY gender;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*_9kSN6f28CbTFnw-ue_TWg.png" /><figcaption>Churn by gender</figcaption></figure><p><strong>d. What is the marriage status of these customers and their respective churn rates?</strong></p><p>While this column uses binary data representation, where 0 is single and 1 is married, the churn rate for single clients is <strong>65%</strong>. The next step was to check if these clients had dependents.</p><pre>SELECT married,<br>COUNT(Customer_ID) AS Count,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS Churn_Rate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY married;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*664RHPJ0w9NAAFaFy6Oaeg.png" /><figcaption>Churn by marriage status</figcaption></figure><p><strong>e. What percentage of churned customers had dependents?</strong></p><p>To achieve this, I implemented the CASE function that returns ‘Yes’ when the number of dependents is more than 0, otherwise ‘No’.</p><p><strong>94.3%</strong> of customers did not have dependents. Considering people without dependents tend to churn more, the telecom company can reevaluate their services in general and improve customer retention.</p><pre>SELECT<br>    CASE <br>        WHEN Number_of_Dependents &gt; 0 THEN &#39;Yes&#39;<br>        ELSE &#39;No&#39;<br>    END AS Dependents,<br>    ROUND(COUNT(Customer_ID) * 100.0 / SUM(COUNT(Customer_ID)) OVER(),1) AS Churn_Percentage<br>FROM<br>dbo.telecom_customer_churn<br>WHERE<br>  Customer_Status = &#39;Churned&#39;<br>GROUP BY<br>     CASE <br>        WHEN Number_of_Dependents &gt; 0 THEN &#39;Yes&#39;<br>        ELSE &#39;No&#39;<br>    END<br>ORDER BY Churn_Percentage DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*EC4TZgd16fRrvbRr-WftFA.png" /><figcaption>Churn by dependents</figcaption></figure><p><strong>f. Which customer age group churns the most?</strong></p><p>First, the age range of customers in the database was determined, which guided the age grouping. Using the CASE statement that created a new column- Age_bin, the client’s ages were divided into <a href="https://www.researchgate.net/figure/Age-group-comparison-between-Young-adult-18-25-age-Adult-26-44-age-Middle-age_tbl1_338842581#:~:text=Figure-,Age%20group%20comparison%20between%20Young%20adult%20(18-25%20age),age)%20about%20four%20sequential%20patterns.">four categories</a>. They include adolescents (19–25), adults (26–44), middle age (45–59), and senior citizens (60–80).</p><p>From this analysis, I found out that the <strong>senior citizens</strong> between the ages of 60 and 80 has the greatest churn rate at <strong>35%</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*EcmKG7hBheJjAAGOI6y8xA.png" /><figcaption>Age bin of customers</figcaption></figure><pre>SELECT<br>    CASE <br>        WHEN Age &gt;= 19 and age &lt; 25 then &#39;19-25&#39;<br>        WHEN Age &gt;= 25 and age &lt; 44 then &#39;26-44&#39;<br>        WHEN Age &gt;= 44 and age &lt; 59 then &#39;45-59&#39;<br>        ELSE &#39;60-80&#39;<br>    END as Age_bin,<br>    ROUND(COUNT(Customer_ID) * 100.0 / SUM(COUNT(Customer_ID)) OVER(),1) AS Churn_Percentage<br>FROM<br>dbo.telecom_customer_churn<br>WHERE<br>  Customer_Status = &#39;Churned&#39;<br>GROUP BY<br>      CASE <br>        WHEN Age &gt;= 19 and age &lt; 25 then &#39;19-25&#39;<br>        WHEN Age &gt;= 25 and age &lt; 44 then &#39;26-44&#39;<br>        WHEN Age &gt;= 44 and age &lt; 59 then &#39;45-59&#39;<br>        ELSE &#39;60-80&#39;<br>    END <br>ORDER BY Churn_Percentage DESC;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*_jQ6tRnxsyI_3ir4ZNCsJw.png" /><figcaption>Churn by age groups</figcaption></figure><p><strong>g. How long have these customers used the Quantum Tech services?</strong></p><p>To know how long the customers typically stay with this service, I divided the tenures into separate groups using the CASE statement to determine which group had the highest churn rate. However, I ran a query to get minimum and maximum duration with the Telecom company before doing this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*0n_b8Krya1Oh3emoMEwJDg.png" /><figcaption>Tenure of customers</figcaption></figure><p>From the analysis below, consumers who have only been with Quantum Tech for <strong>six months</strong> make up the largest category of churned customers, with a value of <strong>41.9% </strong>churn.</p><pre>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.telecom_customer_churn<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/319/1*zgkf_i3hO_vA3bJhnDq48A.png" /><figcaption>Churn by tenure of customers</figcaption></figure><p><strong>h.</strong> <strong>What contracts did the churned customers subscribe for?</strong></p><p>According to my analysis, <strong>89% </strong>of consumers who left were under a <strong>Month-to-Month</strong> contract.</p><p>Customer loyalty can decrease due to a lack of satisfying customer experiences. This can be attributed to factors such as customers’ flexibility to switch subscribers easily as they are not bound by long-term commitment, price sensitivity compared to longer users, and elevated expectations for service quality.</p><pre>SELECT Contract,<br>COUNT(Customer_ID) AS Count,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS ChurnRate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY Contract;<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*lZ2AM4tXA_BnGJ5X7wn4Pw.png" /><figcaption>Churn rate by contract</figcaption></figure><p><strong>i.</strong> <strong>What payment category had highest churn percentage?</strong></p><p><strong>72%</strong> of churned customers used <strong>Bank withdrawal </strong>mode of payment.</p><pre>SELECT Payment_Method,<br>COUNT(Customer_ID) AS Count,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS ChurnRate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY Payment_Method;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*6uJdBiOK5KgysUhurFTJOg.png" /><figcaption>Churn by payment mode</figcaption></figure><p><strong>j.</strong> <strong>How many of them were on premium tech support ?</strong></p><p><strong>78%</strong> of customers who churned were not receiving <strong>premium technical support</strong>. It demonstrates that there is a chance of staying if they had subscribed.</p><p>When problems arises while using internet service providers, it could generate frustration and a bad experience with the service due to low technical know-how. They might start looking for other services with superior and seamless troubleshooting procedures as a result.</p><pre>SELECT Premium_Tech_Support,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS ChurnRate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>group by Premium_Tech_Support<br>order by ChurnRate desc;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*Wf0hNTkX-hNJzNMig0H-vg.png" /><figcaption>Churn by premium tech support</figcaption></figure><p>k. <strong>What offers were the churned customers on ?</strong></p><p>From the result below, <strong>57% </strong>of churned customers <strong>weren’t on any offers</strong>. Whereas customers from other offers; A, B, C, D, had higher retention rates.</p><pre>SELECT Offer,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS ChurnRate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY Offer <br>order by ChurnRate desc;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*OQcGlnouIOWE9rkv32qNjQ.png" /><figcaption>Churn by offer</figcaption></figure><p><strong>l. What internet type did the customers use?</strong></p><p><strong>67%</strong> of the churned customers were users of <strong>Fiber Optic</strong> internet type. Compared to other internet types, the churned customers may not have liked the quality of the fiber optics.</p><pre>SELECT Internet_Type,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS ChurnRate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY Internet_Type<br>order by ChurnRate desc;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*znZ1zhFcZhzi_7kpkkk7Bg.png" /><figcaption>Churn rate by internet type</figcaption></figure><p><strong>m. What were the causes of category churn?</strong></p><p>Here, we see that <strong>45%</strong> of churned customers were due to <strong>Competitors</strong>, followed by dissatisfaction with the services provided and closely by the attitude of the support system (18% and 17% respectively).</p><pre>SELECT Churn_Category,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS ChurnRate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY Churn_Category<br>order by ChurnRate desc;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*N8i9YaseR6PgKDRoXq2hzg.png" /><figcaption>Churn categories</figcaption></figure><p><strong>n. What were the main reasons of churning?</strong></p><p><strong>16.67%</strong> churned because competitor had better devices, <strong>16.64%</strong> churned because competitor made a better offer, <strong>11.77%</strong> churned due to attitude of the support persons. This is consistent with the earlier findings in <strong>point m</strong>, which showed that competitor, dissatisfaction, and attitude were the main category-reasons for churn.</p><pre>SELECT top 5 Churn_Reason,<br>round((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER(),2) AS ChurnRate <br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY Churn_Reason<br>order by ChurnRate desc;</pre><p><strong>o. Which states were most affected?</strong></p><p>The highest rate was <strong>10%</strong> in <strong>San Diego</strong>, followed by <strong>5%</strong> in <strong>Los Angeles</strong>. Further research to identify the primary reasons for churn revealed that the competitor made a better offer. This information can be relevant in market research on telecom competitors and their offerings. Its findings can help these states with increase customer retention.</p><pre>SELECT top 5 City,<br>CEILING((COUNT(Customer_ID) * 100.0) / SUM(COUNT(Customer_ID)) OVER()) AS ChurnRate<br>FROM dbo.telecom_customer_churn<br>where Customer_Status = &#39;Churned&#39;<br>GROUP BY City<br>order by ChurnRate desc;</pre><p>Next, to draw major churn reasons based on the explanatory analysis above:</p><ul><li>Contract: 89% of churned customers were on month-to-month contract.</li><li>Mode of payment: 72% used bank withdrawal mode of payment.</li><li>Internet type: 67% of churned customers used the Fibre optic internet type.</li><li>Premium technical support: 78% of churned customers didn’t have premium tech support.</li><li>Offers: 57% of them weren’t on any offers.</li></ul><p>The SQL script can be found in the <a href="https://github.com/Preshynodis/TelecomChurn-Analysis-using-SQL">GitHub Repository</a>.</p><p><strong>Insight Extractions.</strong></p><ol><li><strong>27% </strong>customers that churned from the service translated to <strong>17.2%</strong> in revenue lost to competitors.</li><li>Females churned more than males with a value of <strong>50.24%.</strong></li><li>The <strong>senior citizens</strong> between the ages of <strong>60</strong> and <strong>80</strong> had the greatest churn rate at <strong>35%</strong>.</li><li>Consumers who have only been with Telecom for <strong>six months or less </strong>make up the largest category of churned customers, with a value of <strong>41.9%</strong>.</li><li><strong>89% </strong>of consumers who left were under a <strong>Month-to-Month</strong> contract.</li><li><strong>72%</strong> of churned customers used <strong>Bank withdrawal </strong>mode of payment.</li><li><strong>67%</strong> of the churned customers were users of <strong>Fiber Optic</strong> internet type.</li><li><strong>78%</strong> of customers who churned were not receiving <strong>premium technical support</strong>.</li><li><strong>57% </strong>of churned customers <strong>weren’t on any offers.</strong></li><li><strong>San Diego</strong> had the highest record of churn by 10.2%, followed by Los Angeles.</li><li>The key-churn drivers for this telecom company are: month-to-month contract, bank withdrawal mode of payment, no offers, fiber optic internet type and premium tech support.</li></ol><p>Therefore, a suitable <strong>churn profile</strong> of the Quantum Tech company based on the insights from demographics with inclusion of the major churn driver would include :</p><ul><li>A female between the ages of 60 and 80 who has been a subscriber for no more than six months, is unmarried and has no dependents. She is also a customer who uses a month-to-month contract, fiber optic internet, no premium support, and bank withdrawal as the mode of payment.</li></ul><p><strong>Actionable Customer Retention Strategies</strong></p><p>To reduce customer churn and ultimately improve customer satisfaction and loyalty, proper measures are needed to be applied. This section discusses the recommendations to improve customer retention based on the insights gotten earlier.</p><ol><li><strong>Develop Awareness Campaign or Program for Different Services</strong>:</li></ol><p>Increase communication and awareness of the different services offered by the Quantum Tech company to enable the customers understand the value of subscribing to them. By doing this, the additional features as well as the benefits can be clearly communicated to the customers. This can be achieved through marketing campaigns, personalized emails, videos or a short story of a testimonial client. In the light of this, this method can be applied to the Premium Tech Support highlighting the advantages gained compared to using a standard support. Also, various offers presented by the company can be addressed using this strategy, since most of churned customers were either on offer E or no offers.</p><p>2. <strong>Introduce Flexible Pricing Options</strong>:</p><p>To accommodate clients with varying budgets, telecom companies can provide tiered plans or monthly subscriptions, as price sensitivity may be a factor that limits user access to particular services. Additionally, they can offer free trials or limited promotion for these services to give the customers to gain first-hand experience. This strategy can be applied to the premium tech support and also categories of the different offers.</p><p>3. <strong>Provide</strong> <strong>Contract Incentives:</strong></p><p>Encourage customers on month-to-month contracts to switch to longer-term contracts by providing incentives such as discounted rates, exclusive features, free upgrades, or extended warranties. This can increase the perceived value of the contracts and make it more appealing to stay with the company.</p><p>4.<strong> Improve Customer Service Quality:</strong></p><p>Invest in the training of support staffs to raise the bar for technical support and improve the overall customer experience. Furthermore, implementing an incentive program can recognize and reward support staff who meet key performance requirements in delivering exceptional customer service. This will encourage others to improve their support services in addition to inspiring the persons involved to keep up their fantastic help.</p><p>5. <strong>Improve the Fiber Optic Product:</strong></p><p>As 67% of the churned customers were users of the fiber optic internet type, the company can conduct a test run for a period of time to understand the actual faults in this product, thereby gaining insights on how to optimize it. However, to prevent having a biased result, the company can do this in form of a survey for those using fiber optic internet type.</p><p>6. <strong>Create</strong> <strong>Alternative Support Channels:</strong></p><p>Evaluate and enhance the standard support systems to meet customer needs and expectations. This can be by adding self-supporting resources or online forums, providing recommendation systems specialized to address the problems encountered, or bot chats using reputable third party support providers.</p><p><strong>7. Ask For Feedback Frequently With Customer Surveys</strong>:</p><p>As often as possible, the company should customer needs and genuine feelings about their products or services through surveys. First, it enables them to find shortcomings and gives room for enhancement of performances. More so, it helps to keep them informed when there’s a change in customer usage behavior or trend in market, hence would prevent migration to competitors who provide better services.</p><p>8. <strong>Enable</strong> <strong>Seamless Payment Experience:</strong></p><p>Based on the analysis, 72% of churned customers used bank withdrawal mode of payment. This process can be streamlined by optimizing the user interface and reducing the number of steps required, making the experience smoother and more user-friendly. Implementing robust encryption and security protocols for bank withdrawal transactions can also improve customer experience. All these can be communicated to the customers through emails, or special messages to instill confidence in the safety of their financial information.</p><p><strong>Conclusion</strong></p><p>By implementing these strategies, Quantum Tech company can improve customer retention among customers. It is important they are also continuously monitored to adapt to evolving customer needs and strategies.</p><p>PS: As time goes on, I will attach the link to the Power BI live report of this analysis. In the meantime, the dashboard can be found in the GitHub repo.</p><p>Moving ahead, I would like to predict the churn rate and status of customers that just joined. This model can be useful when applied in the operations unit in the company to faster identify and segment profile of customers who are prone to churn.</p><p>Thank you for reading!</p><p>Below are the additional materials;</p><p><a href="https://github.com/Preshynodis/TelecomChurn-Analysis-using-SQL">GitHub Repo</a></p><p><a href="https://www.linkedin.com/in/preciousnnodi/">LinkedIn</a></p><p><a href="https://twitter.com/Presh_shee">Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93044315a8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Harnessing The Power of APIs Using Numbers: A Python Console App.]]></title>
            <link>https://medium.com/@preciousnnodi40/harnessing-the-power-of-apis-using-numbers-a-python-console-app-c1f019edd957?source=rss-7e84d8b06038------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1f019edd957</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nnodi Precious]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 01:34:39 GMT</pubDate>
            <atom:updated>2024-01-13T01:34:39.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*XrfdemyTv7WqQKqCI1bxPw.jpeg" /></figure><p>According to Amazon Web Services (AWS), APIs are mechanisms that enable two software components to communicate with each other using a set of definitions and protocols. They play a crucial role in enabling seamless communication and integration between different software applications, allowing them to share data, access functionality, and work together to create more powerful and interconnected systems.</p><p>This article explores the process of developing a Python console application that integrates two different APIs to create a robust and feature-rich application. Moving forward, it will address the step-by-step process of integrating the APIs, discuss the benefits and challenges encountered, and highlight the potential use cases for such an application.</p><p><strong>Problem Statement</strong></p><p>There is a need for software applications to effectively share data and communicate with external systems without many problems relating to a lack of standardized mechanisms. The goal of this project was to retrieve data from the selected APIs and perform meaning transformation on the data to create solutions to a unique problem.</p><p><strong>About The Selected APIs</strong></p><p>The chosen APIs were the COVID-19 and the numbers API, which both take in user inputs of dates and return meaningful data on that specified date respectively.</p><ul><li><a href="https://covid-api.com/api/">COVID-19 API</a></li></ul><p>This API provides current and historical COVID-19 data for every country in the world. Available data includes confirmed case counts and deaths and is updated every day. For this framework, prompts were customized to enable users retrieve either global data, country data or list of countries.</p><ul><li><a href="http://numbersapi.com/">Numbers API</a></li></ul><p>This is an API that retrieves interesting facts about numbers. It provides trivia, math, date, and year facts about numbers. Its implementation takes in the user’s month, then day, and returns the historical fact about that date.</p><p><strong>Setting up the Development Environment</strong></p><p>To set up the Python development environment, it is necessary to import dependent libraries from the chosen APIs. They play a crucial role in establishing the necessary connections and providing the required functionality for fetching data from the chosen APIs. The libraries are shown below:</p><pre>from urllib.request import urlopen<br>from datetime import datetime<br>import json</pre><p><strong>Integrating the APIs</strong></p><p>The console application presents the user with a choice between two APIs — the Numbers App and COVID-19 App. The congruent integration and implementation of these chosen APIs enable the user to select and access a specific API. Subsequently, the application retrieves data from the chosen API based on user inputs and customization. The user is given the option to continue using the selected API or exit the program.</p><pre>PS C:\Users\precious&gt; &amp; C:/Users/precious/AppData/Local/Programs/Python/Python311/python.exe &quot;c:/Users/princ/Downloads/Telegram Desktop/numbersapi.py&quot;<br><br>            Welcome to the Group 6 Python Console App.<br>            Please choose which API you want to use.<br>            1 - Numbers App<br>            2 - COVID-19 App<br>            3 - Exit Program<br><br>Enter a number: 1<br>Welcome to the Numbers App<br>        Input the day and month you want to know about.<br><br>Enter a month(1-12): 10<br>Enter a day(1-31): 11<br>October 11th is the day in 1531 that Huldrych Zwingli is killed in battle with the Roman Catholic cantons of Switzerland.<br><br><br>Do you want to continue using Numbers API? (y/n): n<br><br>            Welcome to the Group 6 Python Console App.<br>            Please choose which API you want to use.<br>            1 - Numbers App<br>            2 - COVID-19 App<br>            3 - Exit Program<br><br>Enter a number: 3<br>Exiting program.<br>PS C:\Users\precious&gt;</pre><p>For any API chosen, there are ensuing prompts for the user until it’s final requests are fulfilled. The complete code containing the Numbers API and COVID-19 frameworks for this project can be found in the GitHub <a href="https://github.com/SeyAnnie/Group_-6_Consoleapp">repo</a>.</p><p><strong>Testing, Debugging, and Error Handling</strong></p><p>The console app covers error handling, ensuring that users and developers can successfully manage unexpected data retrieval issues. Knowing fully well that COVID-19 reports started early in <a href="https://abcnews.go.com/Health/timeline-coronavirus-started/story?id=69435165">2020</a> if a user is to use an input beyond the start date, it will not return any values as there were no previous records. Testing the functionality was carried out to ensure the app did not retrieve false data.</p><p><strong>Real-world Use Cases</strong></p><p>Practical applications of these integrated APIs include but are not limited to real-time data monitoring, fact-checking, data analytics, and visualization. The Python console app enables seamless data exchange and functionality integration, fostering interconnected software solutions. It allows users and developers to retrieve data and utilize it for their use to make informed decisions, and to satisfy their curiosity. A sample output of the console app is shown below, which shows the interaction between the user and the interface.</p><pre>PS C:\Users\precious&gt; &amp; C:/Users/precious/AppData/Local/Programs/Python/Python311/python.exe &quot;c:/Users/precious/Downloads/Telegram Desktop/numbersapi.py&quot;<br><br>            Welcome to the Group 6 Python Console App.<br>            Please choose which API you want to use.<br>            1 - Numbers App<br>            2 - COVID-19 App<br>            3 - Exit Program<br><br>Enter a number: 1<br>Welcome to the Numbers App<br>        Input the day and month you want to know about.<br><br>Enter a month(1-12): 10<br>Enter a day(1-31): 11<br>October 11th is the day in 1531 that Huldrych Zwingli is killed in battle with the Roman Catholic cantons of Switzerland.<br><br><br>Do you want to continue using Numbers API? (y/n): n<br><br>            Welcome to the Group 6 Python Console App.<br>            Please choose which API you want to use.<br>            1 - Numbers App<br>            2 - COVID-19 App<br>            3 - Exit Program<br><br>Enter a number: 3<br>Exiting program.<br>PS C:\Users\preciious&gt;</pre><p><strong>Conclusion:</strong></p><p>API integration empowers developers to leverage the capabilities of external services and platforms, reducing development time and effort while expanding the functionality and value of their applications. The integration of APIs in Python console applications offers immense benefits, opportunities, and future potential. By embracing this approach, developers can unlock new dimensions of functionality, improve their applications, and stay at the forefront of technological advancements.</p><p>If you read to this end, Congratulations, you made it!</p><p>This was a project given to my group members and me in the Data Science track of the Women Techsters Fellowship program. My contribution to the success of this course was to develop a seamless integration of the Numbers’ and the COVID-19 APIs, which will enable the user to be able to make choices on the API to use based on the user’s input. As the group leader, I also ensured that my team members actively collaborated to yield effective results.</p><p>Thank you for reading! I would love to connect with you on <a href="http://linkedin.com/in/preciousnnodi">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1f019edd957" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey Through the Best Data Visualization Practices]]></title>
            <link>https://medium.com/make-your-data-speak/my-journey-through-the-best-data-visualization-practices-1e2aaba8d0e1?source=rss-7e84d8b06038------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e2aaba8d0e1</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[storytelling-for-business]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Nnodi Precious]]></dc:creator>
            <pubDate>Fri, 28 Jul 2023 07:42:42 GMT</pubDate>
            <atom:updated>2023-07-28T07:42:42.725Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8r2rUu8cXHKNkfrCaFvdw.png" /></figure><p>In today’s data-driven business landscape, organizations accumulate large amounts of data every day that can provide valuable insights. As <strong>a data analyst</strong>, it is my responsibility to interpret this data through statistical analysis and present it to stakeholders in the form of data visuals and dashboards. Effective data visualization is crucial as it simplifies complex information into easily understandable charts, enabling business owners to make informed decisions quickly.</p><p>However, to effectively communicate these findings, I find it essential to adhere to certain best practices which I have accumulated through the trials and errors in my data analytics and visualization journey.</p><p>In this article, I will be doing a rundown of an analysis I carried out earlier this year on sales data.<strong> This was my first dashboard on Power BI</strong> from which I learned a lot, and from these methodologies, we will look into the best practices in detail. You can download the dataset <a href="https://docs.google.com/spreadsheets/d/1lFXl6RXFTLCn7IYOpzjDebhUt-4r_s6i/edit#gid=1607966215">here</a> and <strong>practice</strong> later on after you’re done with reading.</p><h3><strong>About the data</strong></h3><p>I’ve used training data stimulated from real business data after taking out some vital information. To read more about the analytical firm that created the data, and to check out other datasets for your portfolio projects, click <a href="https://foresightbi.com.ng/practice-data/3-datasets-for-your-portfolio/">here</a>.</p><p><strong>Foresight Pharmaceuticals</strong> is one of the leading pharmaceutical manufacturing companies with a global presence. Their markets are divided into different regions across the world. They have an agreement with their distributors to share their sales data with them. This is to enable them to gain insights up to the retail level.</p><p>Now let’s get down <strong>to these best dataviz practices</strong> using the case study.</p><h3><strong>1. Set Clear Visualization Goals</strong></h3><p>Before diving into the creation of dashboards, I tend to establish the purpose behind my visualizations by <strong>defining the key messages</strong> I want my audiences to take away from the visuals. This thus will guide the design and the content of my dashboard, ensuring a cohesive and impactful presentation.</p><p>Given the information on Foresight Pharmaceuticals’ company as my case study, first, I tried to understand what my data consisted of (understanding the domain knowledge) and then generated problem statements using the following questions :</p><ul><li>How does the sales performance vary across different regions or territories?</li><li>What is the overall sales generated by the sales team during a specific period?</li><li>Who were the top distributors of these products and services across the years?</li><li>What are the top-selling products or services and their respective sales figures in the German and Poland markets?</li></ul><p>These are only a few questions that will define my goals for this analysis.</p><h3>2. <strong>Understand Your Audience</strong></h3><p>By understanding my audience, I tailor my visualization to effectively communicate the insights that matter most to each group.</p><ul><li>For the executives, I put my focus on presenting high-level KPIs, such as overall return on investment (ROI) and revenue impact.</li><li>For the marketing managers, I can dive deeper into metrics like conversion rates, customer acquisition costs, and campaign performance across different channels.</li></ul><p>Based on my sales data from the case study, I decided to show the following metrics:</p><ul><li>Total sales.</li><li>The yearly trend of these sales across the different countries.</li><li>The products that generate the most sales.</li></ul><p>By aligning my data visualization with the specific needs and interests of my audience, I enhance their understanding and engagement with the data. This is done to ensure that my visualizations are <strong>relevant, impactful, and can effectively communicate the story </strong>behind the data to drive informed decision-making.</p><h3>3. <strong>Gain a Deep Understanding Of Your Data</strong></h3><p>A thorough understanding of your data and its requirements allows for the creation of accurate and meaningful representations of information. It helps identify patterns, trends, and relationships that can uncover valuable insights.</p><p>In the data preprocessing stage, <strong>I eliminate and clean my data</strong> from any nuances or outliers that could skew the insights. Understanding my data ensures the credibility and reliability of visualizations, leading to more impactful and actionable outcomes.</p><h3>4. <strong>Choose the Right Visuals</strong></h3><p>Different types of charts serve distinct purposes, and it’s crucial to familiarize yourself with the applications of the various visualization options to convey the most accurate and appropriate message to your audience. Selecting the right visualizations will enhance comprehension and aid effective decision-making of your audience.</p><p>The charts below are graphical representations of understanding your data visuals and when to use them. I wanted to visualize the yearly trend of sales of the two countries (Germany and Poland).</p><figure><img alt="Pie chart of yearly trend of sales. An example of an unsuccessful chart selection" src="https://cdn-images-1.medium.com/max/526/0*BVsDJKpBfLxAK-1Q" /><figcaption>Pie chart of yearly trend of sales. An example of an unsuccessful chart selection</figcaption></figure><p>In this case, a pie chart would be wrong because it primarily represents <strong>proportions or percentages of a whole</strong>. It lacks the ability to effectively display changes over time or compare values between different categories. Line or area charts are used to<strong> visualize changes over time</strong>, and you can clearly get your insights at a glance. Just like in the chart below, you can notice the peak in 2019 and can easily tell the difference for the other years.</p><figure><img alt="Line chart visualization. An example of a more successful chart selection" src="https://cdn-images-1.medium.com/max/535/0*nBled2GqJSZcPIa8" /><figcaption>Line chart visualization. An example of a more successful chart selection</figcaption></figure><h3>5. <strong>Simplify and Reduce Clutter</strong></h3><p>I strive for simplicity and avoid overwhelming my visualizations with unnecessary elements. To do this, I carefully consider my placement of axes, visuals, and data labels, ensuring they contribute to the clarity of my message. Eliminating clutter allows my audience to focus on the essential insights, improving overall comprehension.</p><p>For an illustrative example, I will refer to another project of mine, dedicated to Sports.</p><p>Here’s a question for you. <strong>What can you deduce at first glance from the chart below?</strong> Imagine having a dozen of this type of chart on your dashboard.</p><figure><img alt="A visual with too many chart junks" src="https://cdn-images-1.medium.com/max/1024/1*EuVHC0FbygGtk_kaltkMJQ.png" /><figcaption>A visual with too many chart junks</figcaption></figure><p>During my analysis of the <strong>Women’s FIFA World Cup</strong> from a project I worked on earlier this year, I had a goal to illustrate the annual trend of team performances in terms of goals scored. The provided chart above includes various components such as axes, data labels, markers, and series labels, showcasing the yearly trends for all the teams. However, it is important to note that in this scenario there may be a tendency to prioritize the inclusion of multiple elements in the visualization while overlooking its overall effectiveness.</p><figure><img alt="Better already, but there is still room for improvement." src="https://cdn-images-1.medium.com/max/1024/1*Bwo4KNCqs_oqv-CrVEgrSA.png" /><figcaption>Better already, but there is still room for improvement.</figcaption></figure><p>By examining the chart above, could you identify any noticeable differences or changes?</p><p>My specific inquiry focused on understanding the trends <strong>of the top three teams</strong> with the highest goal count, as I aimed to compare them. To accomplish this, I simplified the visualization by removing unnecessary chart elements and filtering out countries that were not relevant to my analysis. Additionally, there could also be an option to visualize the trend of a single country based on your specific problem statement.</p><h3>6. Choose Colors Strategically</h3><p>But let’s return to our sales data.</p><p>The effective use of colors can significantly enhance data visualization. Select a consistent color template and format that aligns with the context and purpose of your message. Avoid excessive use of colors, as it may lead to confusion. I often opt for a minimalistic approach, ensuring the colors I choose accurately convey the intended meaning. It would be a hassle to have different charts on your dashboard with several color themes, which most likely will lead to color riots which can cause confusion and an inability to focus on the key insights for the audiences.</p><p>For business dashboards, it is better to use a minimalist color palette to avoid distracting users with a variety of colors. Here is an example of a restrained, but still not optimal, color palette.</p><figure><img alt="An example of a restrained, but still not optimal, color palette" src="https://cdn-images-1.medium.com/max/526/0*HPu8pcKg7V5_vHgM" /><figcaption>An example of a restrained, but still not optimal, color palette</figcaption></figure><p>For different data categories, sometimes it’s better to use <strong>the same color</strong> in charts like bar charts. Another successful technique we will explore in the next section.</p><h3>7. <strong>Highlight Key Insights</strong></h3><p>One technique I always use while creating my dashboards is making my important insights stand out from the rest of the visual elements. I do this by utilizing <strong>conditional formatting </strong>processes to emphasize crucial information. This helps your audience quickly identify and comprehend the key takeaways, facilitating informed decision-making. From the chart below, it’s very easy to identify that <strong>Britanny Bold</strong><em> </em>is the manager whose team generated the most sales at <strong>30.84%</strong>.</p><figure><img alt="Bar chart with highlighting of the important information" src="https://cdn-images-1.medium.com/max/535/1*SdbGwOIhjuj3Is2N5WrTZw.png" /><figcaption>Bar chart with highlighting of the important information</figcaption></figure><p>As a result of my trials and errors, my first dashboard looked like this. Of course, now I look at it with love and tenderness, just like at my first creation. Although I understand that it can be improved in various aspects.</p><figure><img alt="The final version of my first Power BI dashboard" src="https://cdn-images-1.medium.com/max/1024/1*ycAaJwwZloTIyDIK8Jsk4Q.jpeg" /><figcaption>The final version of my first Power BI dashboard</figcaption></figure><p>Since then, I have created several more dashboards on different topics, and during their development, I tried to take into account the mistakes from the past and apply the best data visualization practices. I hope that in the future, my projects will become even better!</p><h3>8. <strong>Think Like a Designer</strong></h3><p>The last recommendation that I couldn’t fully implement in my early projects, but over time, I realized the importance of developing aesthetics as well.</p><p>Now I usually approach my data visualization with a design mindset. It’s important to be flexible and adaptable to different tools and platforms, ensuring your visualizations are aesthetically pleasing. <strong>Impressions matter</strong>, and a visually appealing presentation enhances understanding and retention of information.</p><p>One of the things I do before starting my dashboard is making <strong>a wireframe and sketch </strong>of what I want my dashboard to look like: the general concept, the placements of different charts, and chances of modifications. At times it may be hard to come up with a concept. I’ll share what I did in my recent Power BI dashboard.</p><ul><li>Since it was a project on the analysis of Tweets about a song album, I wanted my dashboard to contain similar colors to the album cover. Using <a href="https://imagecolorpicker.com/">the color picker</a> I extracted colors from the album cover and applied them to my visuals.</li><li>I searched different samples of dashboards to get inspiration for creating mine. Finally, I got dark samples on <a href="https://dribbble.com/search/analytics-dashboard-dark">dribble</a> and it guided me on my own creation.</li></ul><figure><img alt="Davido’s Timeless Album: Twitter Sentiment and Engagement Analysis." src="https://cdn-images-1.medium.com/max/1024/0*bXLIAOX0ZsleOtM8" /><figcaption>Davido’s Timeless Album: Twitter Sentiment and Engagement Analysis</figcaption></figure><p>This was my final dashboard after <strong>several days of editing and modifications</strong>. To read more on the process methodology I applied for the project click <a href="https://medium.com/@preciousnnodi40/davidos-timeless-album-twitter-sentiment-and-engagement-analysis-9de1e0675835"><strong>here</strong></a>.</p><p>Another approach I suggest is having a<strong> collection of beautiful dashboards</strong> that inspire you and go through them from time to time. Through this, you can understand the design perspective of people, and learn a few from their visuals. Most importantly, we should be free to recreate what’s on our minds in the best possible way. Using this <a href="https://coolors.co/palettes/popular/black"><strong>site</strong></a><strong> </strong>you can get color palettes, themes, and it also gives you the opportunity of having complimentary colors for your dashboard.</p><h3>9. Don’t Forget to Tell Stories about Your Data</h3><p>The <strong>art of data storytelling</strong> is significant in data visualization. It can help engage and captivate the audience, enabling them to connect with the data on a deeper level. The following below are chart types and their applications, and with them, we can build compelling visuals to convey our messages to the audience:</p><ul><li><strong>Bar Charts:</strong> Ideal for comparing categorical data or showing frequency distributions.</li><li><strong>Line Charts</strong>: Effective for illustrating trends and changes over time.</li><li><strong>Pie Charts</strong>: Useful for displaying proportions or percentages in a whole.</li><li><strong>Scatter Plots</strong>: Suitable for showcasing relationships between two variables. But remember, for a broad audience, the perception of this chart may be challenging.</li><li><strong>Heatmaps</strong>: Great for presenting large amounts of data and identifying patterns.</li><li><strong>Treemaps</strong>: Helpful in displaying hierarchical data structures.</li><li><strong>Funnel Charts</strong>: Effective for visualizing the progressive stages of a process.</li><li><strong>Area Charts</strong>: Ideal for showing the distribution of categories as part of a whole over time, where cumulative is unimportant.</li></ul><p>In addition to choosing the right charts, use <strong>color highlighting</strong> and <strong>annotations</strong> to tell your story in the best possible way.</p><p>To explore different dashboard styles, diagrams and to understand how people use them, you can check out <a href="https://public.tableau.com/app/discover/viz-of-the-day">Tableau’s viz of the day</a>. In this gallery, there are always many interesting examples of storytelling and dashboards.</p><p>Overall, by adopting these aforementioned recommendations, you can achieve a huge breakthrough in creating excellent visualizations and dashboards.</p><p><strong>Now you have an idea of the common pitfalls to avoid, go ahead and try yours!</strong></p><p><strong>Here’s a quick summary about me:</strong></p><p>My name is <strong>Nnodi Precious</strong>. And I’m an engineer-in-view with a strong passion for creating solutions for businesses through insights from data visualization and dashboards. In my free time, I love to read about new trends and technologies in business data analytics.</p><p>And I would love to connect on <a href="https://linkedin.com/in/preciousnnodi/">LinkedIn</a>.</p><p><em>Thank you for reading!</em></p><p><em>Follow us on </em><a href="https://www.linkedin.com/company/data2speak"><em>LinkedIn</em></a><em> and </em><a href="https://twitter.com/data2speak"><em>Twitter</em></a><em>!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*HzKw8VbKucLBRIgJ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e2aaba8d0e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/make-your-data-speak/my-journey-through-the-best-data-visualization-practices-1e2aaba8d0e1">My Journey Through the Best Data Visualization Practices</a> was originally published in <a href="https://medium.com/make-your-data-speak">Make Your Data Speak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Davido’s Timeless Album: Twitter Sentiment and Engagement Analysis.]]></title>
            <link>https://medium.com/@preciousnnodi40/davidos-timeless-album-twitter-sentiment-and-engagement-analysis-9de1e0675835?source=rss-7e84d8b06038------2</link>
            <guid isPermaLink="false">https://medium.com/p/9de1e0675835</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <dc:creator><![CDATA[Nnodi Precious]]></dc:creator>
            <pubDate>Sat, 03 Jun 2023 09:50:21 GMT</pubDate>
            <atom:updated>2023-06-03T09:50:21.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*e_I0FAUf45-iiFPfiNctBg.jpeg" /></figure><p>Davido is a popular Nigerian-American singer and songwriter whom all have admired over the years because of his songs which are mostly thrilling and sensational.</p><p>On the 31st of March 2023, Davido released his fourth album ‘<strong>Timeless</strong>’ with 17 track songs and total play duration of 49 minutes 12 seconds. Fans all over the world had been waiting for this album to drop since his last album ‘ A Better Time’ in 2020. Due to the massive reactions from people on the on-stream media, I decided to conduct analysis on this album. I wanted to understand how the Twitter community received this album and the engagements behind it.</p><p>For this analysis, I implemented knowledge of Natural Language Processing (NLP), Sentiment analysis, and Text Mining. In order for me to have done this, I studied a few materials and watched some tutorials on the aforementioned areas. The tweets were scraped with hashtags ‘<strong>#timeless</strong>’ and ‘<strong>#timelessalbum</strong>’, using Snscrape library between 31st March and 10th April 2023.</p><p><strong>Process Methodology</strong></p><p>I used the following steps below to carry out this analysis;</p><ul><li>Data Requirement Gathering</li><li>Data Collection</li><li>Data Cleaning</li><li>Data Preprocessing</li><li>Exploratory Data and Sentiment Analysis</li><li>Documentation and Sharing</li></ul><p><strong>Data Requirement Gathering</strong></p><p>This stage generates a list of requirements to define what this project is about and its goal. It is an important aspect that has to do with brainstorming and research as it guides one throughout the process. Through my analysis, I wanted to uncover answers to the following questions;</p><p>1. Which track did people like the most ?</p><p>2. The most popular featured artist of the album.</p><p>3. Which location were the tweets generated ?</p><p>4. What were the Twitter users’ sentiments?</p><p>5. What were the most frequent words in generated tweets?</p><p>6. What was daily trends of tweets with the duration of data collection?</p><p><strong>Data Collection</strong></p><p>The data was scrapped using hashtags #timeless and #timelessalbum queries, using Snscrape library on python. This process took approximately 1 hour 48 minutes for both hashtags. Before I did this , I made sure to install and import necessary libraries to avoid having errors. The prerequisites as below;</p><pre># import important libraries<br><br>import warnings<br>warnings.filterwarnings(&#39;ignore&#39;)<br><br>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<br>from tqdm.notebook import tqdm<br>from collections import Counter<br><br>#import snscrape.modules.twitter as sntwitter<br>import nltk<br>from nltk.corpus import stopwords<br>nltk.download(&#39;stopwords&#39;)<br>nltk.download(&#39;wordnet&#39;)<br><br><br>from nltk.tokenize import word_tokenize<br>from nltk.stem import WordNetLemmatizer<br>nltk.download(&#39;punkt&#39;)</pre><p>After gathering the tweets, I appended them a single dataframe on the <strong>Date</strong> column. Next, I checked for presence of duplicated data and deleted them to avoid chances of inaccurate or biased analysis. Moving forward, I made a copy of my dataset which was later downloaded as a csv file on my personal computer.</p><p>Due to Twitter’s restrictions and daily changes of APIs, my initial scraping codes were unable to go through after using it for 7 consecutive days. I inquired that <strong>‘Error 404’</strong> was the new error for those wanting to scrape and you can read more about it <a href="https://github.com/JustAnotherArchivist/snscrape/issues">here</a> . To make this project better, I used two Google colab notebooks ; the first one which contains the scraping and the second which contains the rest of my analysis.</p><p><strong>Data Cleaning</strong></p><p>Having created the new notebook, I imported relevant libraries and read in the dataset. Below is a quick preview of our data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJ7eC7VWQ1Lr2KgUHHL4fw.png" /><figcaption>Preview of data frame</figcaption></figure><p>The merged dataframe is comprised of 90027 tweets (rows) and 17 columns. From the information of the dataset below, I noticed that the Date column had incorrect data type. Further more, I looked into the data to identify quality issues with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*vGfSUPzXrAJPIrJn9-uOBw.png" /></figure><p>To clean the data, I took into consideration of the following; incorrect datatypes and presence of null values, irrelevant columns, also having in mind that duplicates had already been deleted as I mentioned earlier.</p><p>I deleted the <strong>Unnamed: 0</strong> and <strong>Track </strong>columns because they was irrelevant in my analysis. Thereafter, I changed the Date column’s data type, replaced null values in Location column to “Not Available”.</p><p><strong>Data Preprocessing</strong></p><p>For this stage I created regex functions to extract the data I needed for my analysis from the tweets, in regards to the questions I raised in <strong>point 1</strong> of Process Methodology. Regex functions are used to match strings of text such as particular characters, words, or patterns of characters and extract them.</p><p>a) <strong>Extracting the most popular music tracks</strong>:</p><p>I first removed the spaces between the track names and created a function to replace the all the track names after which it was applied to the <strong>Tweet</strong> column. This was done in order to avoid issues when extracting the needed data. A new column was created thereafter using the code as shown below.</p><pre># Defining a function to replace track names as one word track name in a new column new_track<br><br>def trackNames(timeless):<br>    replacements =  [(&quot;overdem&quot;, &quot;overdem&quot;),(&quot;feel&quot;, &quot;feel&quot;), (&quot;in the garden&quot;, &quot;inthegarden&quot;),(&quot;god father&quot;, &quot;godfather&quot;),<br>                     (&quot;unavailable&quot;, &quot;unavailable&quot;), (&quot;bop&quot;, &quot;bop&quot;) , (&quot;e pain me&quot;, &quot;epainme&quot;), (&quot;away&quot;, &quot;away&quot;), (&quot;precision&quot;, &quot;precision&quot;), <br>                     (&quot;kante&quot;, &quot;kante&quot;), (&quot;na money&quot;, &quot;namoney&quot;), (&quot;juju&quot;, &quot;juju&quot;), (&quot;no competition&quot;,&quot;nocompetition&quot;), (&quot;picasso&quot;, &quot;picasso&quot;),<br>                     (&quot;forthe road&quot;, &quot;fortheroad&quot;), (&quot;lcnd&quot;, &quot;lcnd&quot;), (&quot;champion sound&quot;, &quot;championsound&quot;)]<br><br>    for pat, repl in replacements: <br>        timeless = re.sub(pat, repl, timeless)<br>    return timeless<br><br>df[&quot;new_track&quot;] = df[&#39;Tweet&#39;].apply(trackNames)<br>df.head(2)</pre><p>Next, I created functions to get count of every instance of the tracks in every tweet and stored to a new dataframe ‘<strong>Tracks_df’</strong> , the code shown below.</p><pre># Store track in a list<br>track_list = df[&#39;ttrack&#39;].tolist()<br><br># Iterating over all track names and split where there is more than one track instance<br>track = []<br>for item in track_list:<br>    item = item.split()<br>    for i in item:<br>        track.append(i)<br><br># Getting unique count of all tracks<br>counts = Counter(track)<br>track_df = pd.DataFrame.from_dict(counts, orient=&#39;index&#39;).reset_index()<br>track_df.columns = [&#39;Track&#39;, &#39;Count&#39;]<br>track_df.sort_values(by=&#39;Count&#39;, ascending=False, inplace=True)<br>print(&quot;The Total Number of Unique Tracks is: &quot;, track_df.shape[0])<br>track_df</pre><p>b) <strong>Extracting the mentions of featured artists in Timeless album</strong>:</p><p>Just like I did above, I removed spaces between names with more than one word and replaced all featured names using a regex function after which it was applied to the <strong>Tweet</strong> column to create a new column. Each instance of the mentioned features were counted, stored to a new data-frame and saved as a csv file.</p><p>c) <strong>Extracting the most popular hashtags:</strong></p><p>Creating a function where REGEX was applied, I extracted the hashtags from the Tweet column. This result was saved to a data-frame and then to a csv file for further analysis.</p><pre># Defining a function to extract hashtags with REGEX<br><br>def getHashtags(tweet):<br>    tweet = tweet.lower()  #converts tweet to lower case<br>    tweet = re.findall(r&#39;\#\w+&#39;,tweet)  <br>    return &quot; &quot;.join(tweet)<br><br># Getting Hashtags and storing in column &#39;hashtags&#39;<br>df[&#39;hashtags&#39;] = df[&#39;Tweet&#39;].apply(getHashtags)<br>df.head(2)</pre><p>d) <strong>Extracting the most tagged accounts</strong></p><p>To extract the most tagged accounts, I applied a regex function to the <strong>Tweet</strong> column and then printed out the top 10 tags using slicer function. I noticed ‘<em>@youtube’ </em>was among top 10 so I removed it as I needed original user accounts of tweeters.</p><pre># getting the most tagged accounts in the tweets<br>mentions = df[&#39;Tweet&#39;].str.extractall(r&#39;(\@\w*)&#39;)[0].str.lower().value_counts()<br><br>mentions = mentions[mentions.index != &#39;@&#39;]<br>mentions = mentions[mentions.index != &#39;@youtube&#39;] # &#39;@youtube&#39; is removed because we need original twitter accounts<br>#to get the top 10 most mentioned accounts<br>mentions = mentions[:10].sort_values(ascending = True)<br>print(mentions)</pre><p><strong>Exploratory Data and Sentiment Analysis</strong></p><p>For the sentiment analysis, the texts of the Tweet column were first preprocessed before carrying out the analysis. It involved creating different Regex functions to remove English stop-words, emojis, repeating characters, lemmatization to remove punctuation, and applied Tokenization to split text tweet into words. I did this in the first notebook that was used to scrape tweets, which explains why there were <strong>cleaned_text</strong>, <strong>Sentiment</strong> and <strong>Polarity</strong> columns in my merged dataframe at the beginning of this documentation.</p><ol><li><strong>Sentiment Analysis</strong></li></ol><p>Sentiment analysis is the process of computationally identifying and categorizing opinions expressed in a piece of text, especially in order to determine whether the writer’s attitude towards a particular topic, product, etc. In this project, I tried to gain an overview of the wider public sentiments of tweeters on Davido’s Timeless album.</p><p>Using the TextBlob function, I was able to get the polarity scores of the tweets. Polarity lies between <strong>-1</strong> and <strong>1</strong>, where -1 defines a <strong>negative</strong> sentiment and 1 defines a <strong>positive</strong> sentiment, when polarity is 0 we can say it’s <strong>neutral</strong>. We can see a visual distribution of sentiments’ polarity of the tweets below, showing <strong>60.3%</strong> of Neutral, <strong>6.9%</strong> Negative and <strong>32.8% </strong>Positive sentiments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*2moVUimZ96ozERmywxYHCQ.png" /><figcaption>Pie chart showing distribution of tweeters’ sentiments</figcaption></figure><p>2. Taking a look at the most popular tracks from Twitter within the duration of this data collection period, the bar chart below shows that <strong>Kante, Feel, Away </strong>and<strong> Unavailable </strong>are the top 4 mentioned tracks on Twitter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wd_e1djSg9K3fhenmUjx3A.png" /></figure><p>While I was still conducting analysis on python, I exported the data to Microsoft Power BI for further analysis and visualization.</p><p>3. #<strong>timeless</strong> which is also the album name is the most used hashtag with a count of 53K, followed by <strong>#timelessalbum</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*3mvuoQ-YRztCrbSRxv-QuA.png" /><figcaption>Most popular hashtags</figcaption></figure><p>4. The top-mentioned featured artists are <strong>Asake</strong>, <strong>Fave</strong> and <strong>Morravey.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*l9BknGDhnF4Nu1DGa35uhw.png" /><figcaption>Top 5 mentions of artists that featured in Timeless album</figcaption></figure><p>5. <strong>Tweet by Date</strong>: From the visual below, we can see that Timeless album was definitely a buzz during it’s release as at 1st April while having an average of ~3k tweets for the next 4 days, and a steady decline afterwards (31st March was not included).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*4axTfdQI7LkgJUbn1Y8pvQ.png" /><figcaption>Tweet by day</figcaption></figure><p>6. <strong>Treeversebot</strong> appears to be the most active user via the analysis in the visual below, however after checking the originality while sticking to the purpose of this project, I found out it was a bot account for Treeverse NFT, <strong>Lotsofspot2 </strong>is also not related to our analysis. Hence, I can say most active as regards Timeless Album and within the duration of data collection is <strong>RabsonLee.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*0Z97hXvFZ6rMXH5PMVXhtA.png" /><figcaption>Top fans</figcaption></figure><p>I created a <strong>word cloud</strong> to know the most frequent words in the tweets. The data used here was same I used to conduct sentiment analysis (<strong>cleaned_text</strong> column); the data was first processed in terms of removing stop words, applied Tokenization, Lemmatization to remove punctuation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TTNTZcunxy4KgpJ97Vfmg.png" /><figcaption>Frequently occurring words</figcaption></figure><p>Out of curiosity I decided to check the most liked post under the original hashtags I used to scrape. Did you expect this?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*X-UVOFFd64s8VO94nCZJ4A.png" /><figcaption>Most liked Tweet</figcaption></figure><p>I’ll include my interactive Power BI dashboard to further illustrate my insights <a href="https://www.novypro.com/project/twitter-sentiment-and-engagement-analysis">here</a>.</p><p><strong>Insights</strong></p><p>Based on this analysis which was carried out on data collected from March 31st to 1Oth April;</p><ol><li>Timeless album had <strong>6.9% negative, 60.3%</strong> Neutral and <strong>32.8%</strong> Positive sentiments.</li><li>The top 5 popular tracks off the album are <strong>Kante, Feel , Away, Unavailable and Godfather.</strong></li><li><strong>#timeless</strong> and <strong>#timelessalbum</strong> are the top 2 most popular hashtag, which are also the hashtags I used in scraping the tweets.</li><li><strong>Asake </strong>is the top mentioned artist with<strong> 1858 </strong>mentions , followed by<strong> Fave</strong> and <strong>Morravay.</strong></li><li>The <strong>peak</strong> tweets were right after the release date <strong>1st April 2023</strong>.</li><li><strong>RabsonLee </strong>is the most active tweeter related to Timeless album.</li></ol><p><strong>Limitations</strong></p><p>The ‘cleaned_text’ column which contains cleaned tweet of the main <strong>Tweet</strong> column contained 8777 null values which I didn’t drop because it would reduce the original tweets of my data. However this column was used only for the sentiment analysis and word-cloud visualization.</p><p>Also, this analysis only covers a small portion of the sample space. Therefore, it is safe to refrain from drawing conclusions about the album from these insights. I’d suggest analysis to be conducted on other social media platforms and streaming media over a broader period of time to acquire an in-depth insights of this album.</p><p><strong>Conclusion</strong></p><p>Despite the album’s highest peaks occurring on the first two days, the number of tweets per day decreased steadily after that. This was probably going to happen given that Davido absolutely stayed away social media for nearly 4 months prior to the album’s release on March 31. It’s possible that the peaks over the first few days can be attributed to the long-awaited anticipations from his fans.</p><p>Also, based on this analysis, this album amassed 60.3% Neutral and 32.8% Positive sentiments. It’s most likely that tweeters love and appreciate the artist (Davido) more than all the tracks of the album. This is further demonstrated by the insights from the most popular tune off the album and the most cited featured artist, where the latter does not have his track included among the top 10 mentioned tracks off the album.</p><p>Overall, the album gained a <a href="https://twitter.com/DAVIDO_STATS/status/1652758754679480322/photo/1">total record</a> of 469.67 million streams across platforms like Audiomack, Applemusic, Boomplay, Youtube, Spotify in it’s first month of release.</p><p>Thanks for reading!</p><p><strong>Relevant Links</strong></p><p>To access my codes on <a href="https://github.com/Preshynodis/Davido_Timeless_Twitter_Sentiment_Analysis">Github</a></p><p><a href="https://www.novypro.com/project/twitter-sentiment-and-engagement-analysis">Power BI Dashboard</a></p><p>Get to know me better : <a href="https://linkedin.com/in/preciousnnodi">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9de1e0675835" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Apply for Financial Aid on Coursera]]></title>
            <link>https://medium.com/@preciousnnodi40/how-to-apply-for-financial-aid-on-coursera-7eb482f55e01?source=rss-7e84d8b06038------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eb482f55e01</guid>
            <category><![CDATA[free]]></category>
            <category><![CDATA[online-courses]]></category>
            <category><![CDATA[financial-aid]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[coursera]]></category>
            <dc:creator><![CDATA[Nnodi Precious]]></dc:creator>
            <pubDate>Sun, 23 Apr 2023 14:01:29 GMT</pubDate>
            <atom:updated>2023-04-23T18:02:16.694Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Study on Coursera for Free</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*IJjzYFbNBfq4rw1ef7T0rA.png" /></figure><p><em>Have you been auditing your courses ? You don’t have enough money to pay for your courses? Are you looking for a place to get certified from top Universities while on free-budget mode?</em></p><p>Then you’re at the right place! This article will guide you through your application to get you closer to achieving your goals.</p><p>Coursera is a global platform for online learning and career development that offers anyone, anywhere, access to online courses and degrees from leading universities and companies. Nowadays, most Coursera courses are free to audit. However, if you want to complete graded assignments or get a course certificate you have to pay.</p><p>Coursera provides the option to apply for financial aid. This is specially for those who can’t afford the monthly costs or for one reason or the other are unable to pay.</p><p>Now popping the big question by most learners <strong><em>“ How do I access Coursera for free? ” </em></strong>. The following procedures below will guide you step-by-step to answer this question. Before you start, ensure you’re logged in to Coursera on your computer.</p><ol><li>Select course of your choice and go to homepage of the course.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e5IgF1cVC62WEZhrFHEL_w.png" /></figure><p>2. Click on the hyperlink “<strong>Financial aid available” </strong>located at the right side of the yellow box. A dialogue box will open as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AAszOvWV8_LoljP8OkTRaw.png" /></figure><p>3. Click on <strong>Continue to the application</strong> and get redirected to a new page. Make sure to fill in the spaces of Education, Annual income and Employment status as this would enable them understand you better and why you need financial aid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*86bbq5VrVEHGSkx2GckICQ.png" /></figure><p>4. The next part asks the question: <strong>Why are you applying for Financial Aid?</strong></p><p>This part consists of essay 150 words minimum, and you should ensure you answer truthfully. The following tips can help guide your essay writing.</p><p>- Tell them about your current financial status and how the aid will go a long way.</p><p>- Talk about your educational background and how it relates to the course you are applying for.</p><p>- Tell them the financial standings of your parents, as they might not be able to afford the payments.</p><p>- Having the status of a student, you are unemployed and unable to pay the fees.</p><p>Below is a sample essay I wrote, exactly 150 words.</p><p><strong>Model Answer</strong>: <em>I am an Mechanical Engineering student and I’m learning data analytics from online platforms like Coursera and other open-source platforms. I have found this course and its content to be quite useful. Also, I am currently looking to pivot into the Data Analytics domain and so getting a certificate for this course will be very beneficial in ensuring that I have the necessary skills to use them in the future.</em></p><p><em>However, considering my current financial condition, I am not able to afford the fees for this course. I presently live in Russia, where we have been heavily sanctioned for more than a year now, prohibiting us from conducting foreign transactions and restricting access to several services. In addition, I’m an unemployed undergraduate student who cannot afford the price.</em></p><p><em>I ask for financial aid in the hopes that it will be approved, to help me complete this course and help me towards achieving my goal to become a Google certified Data Analyst.</em></p><p>Tick the box underneath and click <strong>Next</strong> which will take you to stage 5 of your application.</p><p>5. This is the second part of this application. They want to assess how much you can afford for the course and in turn how the course you’re taking will help the goals you mentioned earlier. You can decide to put fees ranging from 0- 10, depending on your choice and preference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*s_XJue8khcFzH0nf5YPfZQ.png" /></figure><p>This second part asks the question: <strong>How will your selected course help you with your goals?</strong></p><p>This is an essay writing just like in point 4. The following tips can help you answer this question ;</p><ul><li>Highlight your primary motive behind taking the course.</li><li>Discuss how this course will elevate your current standings / situation.</li><li>Highlight how you will benefit from this course.</li></ul><p><strong>Model Answer: </strong><em>I’m actively searching for an internship or entry-level position as a data analyst because I want to start a career in the field. I’m now working on projects for my online portfolio and taking several online courses from different online platforms. The information I will learn in this course and the way it will be taught are of the utmost importance to me. It is one of the most significant courses I am currently enrolled in. Therefore, I require a certificate of completion in order to show a future employer the skill set I have developed through this course.</em></p><p><em>Additionally, this course contains fairly thorough materials and useful projects that will expose me to the precise skill set I need to develop firsthand. There are very few online hands-on practical courses out there and this is one of them and so I do not want to miss out on learning from this one.</em></p><p><em>Overall, this course is a great learning opportunity for me and will help me in getting my best foot forward and open doors for me in the Analytics field.</em></p><p>Thereafter, you can complete the application by adhering to the next instructions that follow suit on the webpage. Click on review, and then <strong>Sumbit</strong>.</p><p>Hooray! You just submitted your first financial aid application, you can decide to audit the course while waiting for financial aid to be approved.</p><p><strong>FAQs</strong></p><ul><li>How long does the process take?</li></ul><p>Coursera says it takes approximately 14 days for it to be approved. Thus, this is the duration you should be expecting it to be ready. They will notify you through the email you used for registration once the Financial aid is approved.</p><ul><li>Can you apply for financial aid while having a pending approval?</li></ul><p>The answer is yes. After submitting your tenth application, you won’t be able to apply financial aid to any courses until at least one application is completely processed, according to Coursera forum.</p><p>Congratulations for reading thus far! Don’t forget to hit the clap button and share to your friends and colleagues.</p><p>Wishing you success in your learning journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eb482f55e01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Analysis of Restaurant Sales Using Power BI]]></title>
            <link>https://medium.com/@preciousnnodi40/data-analysis-of-restaurant-sales-using-power-bi-e69a273aa355?source=rss-7e84d8b06038------2</link>
            <guid isPermaLink="false">https://medium.com/p/e69a273aa355</guid>
            <category><![CDATA[dashboard]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Nnodi Precious]]></dc:creator>
            <pubDate>Wed, 22 Feb 2023 10:01:57 GMT</pubDate>
            <atom:updated>2023-02-22T10:01:57.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IHxqvuk1U0pVD8nk" /><figcaption>Photo by <a href="https://unsplash.com/@picturesbyalbert?utm_source=medium&amp;utm_medium=referral">Albert</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Introduction</strong></p><p>To operate effectively in marketing, businesses need analysis of their data. These analyses offers insightful information about how their organizations are doing in terms of sales and helps to guide important business choices. They can find areas for improvement, assess the success of their sales tactics, and reach well-informed judgments by evaluating sales data.</p><p>The goal of this analysis is to uncover significant insights that can be used by restaurant business owners to assess their performances, pinpoint areas for development, and make wise decisions that promote expansion and profitability. It is also directed to those that wish to start theirs.</p><p>Below is the process flowchart I followed in this analysis;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*K03eSNEVhFy7dk9AFBISxg.png" /></figure><p><strong>Data Requirement Gathering</strong></p><p>I intend to answer the following questions through this analysis;</p><p>1. What are the top selling cuisines ?</p><p>2. Do the bestselling cuisines also provide the highest levels of sales ?</p><p>3. What categories do the top selling cuisines fall under?</p><p>4. Who are the top customers?</p><p>5. Which Zone has the busiest traffic?</p><p>6. How many restaurants are in these zones?</p><p>7. When do orders seem to be the highest?</p><p>8. Which cuisine sells most for this time?</p><p><strong>Data Collection</strong></p><p>The data was downloaded from Kaggle, containing two tables — Restaurant (consisting 21 rows and 5 columns of data on the restaurants) and Orders (with 500 rows and 10 columns). The various columns of the datasets are outlined below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*n0R9mLqudT3kLZlNTJqAAw.png" /><figcaption>Tables and their different columns</figcaption></figure><p>From the table above, we can see that both tables have a shared column “Restaurant ID” , which is the key in both tables. The Orders’ table is the fact table which contains a primary and foreign key, Order ID and Restaurant ID respectively. On the other hand, the Restaurants’ table is the dimension table with Restaurant ID as primary key.</p><p>Primary key is a column in a table that uniquely identifies the rows in that table, while foreign keys are columns in a table that refers to the primary keys in another table, therefore linking two or more tables in a relational database. An advantage of Power BI is that it is able to detect these keys and create a connection in the data model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*gHFoGqk4DwW2_QEBxW7-XQ.png" /><figcaption>Data Model in Power BI showing the connection to both tables</figcaption></figure><p><strong>Data Cleaning and Transformation</strong></p><p>The both datasets were loaded to power query in Power BI for cleaning. Data cleaning is an important aspect in data analysis process as it ensures accuracy and credibility of the insights generated from the data.</p><p>Under this step, I took into consideration of the following: data types, duplicates, null values, incorrect spellings.</p><p>Using the data preview feature on Power Query, I was able to identify that there were no null values and errors for each column in the Orders’ table. Also, I checked for duplicates using column distribution such that under Order ID, I had an equal amount of distinct and unique data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cQqph97OPWoD7TbC8iULQ.png" /><figcaption>Data Preview on Power Query</figcaption></figure><p>Next, I split ‘Order Date’ column by position to extract the actual time and dates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*fVfpr2jkF358dvBzmYNkNA.png" /><figcaption>Splitting by position</figcaption></figure><p>I renamed the new extracted columns to Order Date and Time of Day. Thereafter, I changed the data types to their correct format.</p><p>In order to extract the actual period of day instead of just hours, I established a conditional column into which I fed a set of conditions, and this new format of “Morning, Afternoon, Night” was produced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yNTAl-MI38A_vHvPf9XgFg.png" /><figcaption>Conditional column</figcaption></figure><p>Having three distinct entries of “Debit card, Credit card, and Cash on delivery” as payment mode, I created a conditional column which replaced entries of Debit and Credit as “Card” otherwise “Cash” and renamed the column name to Payment Mode.</p><p><em>At the end of this process, the Orders table contain same 500 rows and 13 columns and Restaurants remain the same. Now the data is ready for exploratory analysis.</em></p><p><strong>Exploratory Data Analysis and Visualization</strong></p><p>In this stage, I answered the questions I raised earlier, in the data requirement gathering process.</p><p>Firstly, I displayed a quick summary/ preview of the data which will reveals some Key Performance Indicators (KPIs) .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*WGJgIX6otn_oHm0aKeiP1A.png" /></figure><p>20 different restaurants received $299.1k from sales, from 500 orders placed by 20 different consumers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*LkFI0JqpkNNfrAfzXTzxTA.png" /></figure><p>The doughnut chart above shows that <strong>66.2%</strong> of customers paid with <strong>card</strong>. This is most likely to happen, especially in a nation where electronic payments is a very efficient and widely used mode of payments.</p><p>The column chart by the right shows that there is more traffic in the <strong>afternoon </strong>than any other time of day.<strong> </strong>This maybe as a result of lunch breaks of workers and students, and hangouts in the evenings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*1F1m5gAU5Q3siGcEv3_t0Q.png" /><figcaption>Top customers</figcaption></figure><p>From the chart above, <strong>Srini </strong>has the highest orders, followed by Revandh and Rifa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*bQSWoopfg9U5XJZKa4gTPg.png" /></figure><p>There are 4 zones in total and Zone D has most traffic. This can be attributed to the fact they have highest number of restaurants unlike other zones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*2qKov9q5COlzep-6Fn6Vug.png" /></figure><p>North Indian, Chinese, French, South Indian and African are bestselling cuisines. Also, it is likely that North Indian cuisine will have maximum average customer-food rating.</p><p>The doughnut chart shows that 13 out of 20 restaurants are under Ordinary category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*R61V8w-c9awwvMoKVTKALQ.png" /></figure><p>From the chart above, we can see the top selling restaurants and their various categories. <strong>Veer </strong>generates highest which is an Ordinary restaurant, followed by The Cave Hotel and Anand Restaurant. I also want to note that, despite the fact that top selling restaurant (Veer) is under Ordinary category, 3 restaurants of Pro category are in top 5 selling restaurants.</p><p><strong>Insights</strong></p><p>1. Most of the orders are made in the afternoon, followed by night then morning.</p><p>2. Srini, Revandh, Rifa , Ram and Veer are top 5 customers in these restaurants with Srini leading by 168 orders.</p><p>3. Zone D seems to be the dominant zone with a total of 9 restaurants generating 42.85% sales. Another good zone might be Zone B with 5 restaurants.</p><p>4. 66.2% of the orders were paid with cards (credit/debit) while cash had 33.8%</p><p>5. The top 3 selling cuisines are North Indian, Chinese, and French, with North Indian accounting for $46.7k in sales.</p><p><strong>Recommendations</strong></p><p>Based on my analysis, I recommended the following:</p><p>1. Restaurants can implement electronic mode of payment since 66% of orders are made by<strong> cards</strong>.</p><p>2. Since the majority of orders are received in the <strong>afternoon</strong>, additional employees ought to be transferred to the afternoon shift to speed up operations and decrease delivery times for consumers. This will in turn raise these restaurants’ ratings for customer service delivery.</p><p>3. <strong>Zone D </strong>has more customers which translates to more sales. I’d recommend to open a restaurant in Zone D since it has the largest market. From another perspective, more restaurants can be opened in the other zones to attract more customers.</p><p>4. Due to the fact that <strong>Zone D</strong> is where the majority of <strong>North Indian</strong> restaurants are located, new businesses in other zones may specialize in North Indian food.</p><p>5. The afternoon has the highest volume of orders, with Chinese orders accruing the majority of them. <strong>Chinese </strong>and<strong> North Indian </strong>cuisine<strong>s </strong>are specialties in restaurants that guarantee top sales. In that case, restaurants can hire more cooks that specialize in these cuisines.</p><p>Link to interactive dashboard :</p><p><a href="https://www.novypro.com/project/less-is-more">Analysis of Restaurant Sales</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e69a273aa355" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>