<?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 Adebayo Hamdalat Abiola on Medium]]></title>
        <description><![CDATA[Stories by Adebayo Hamdalat Abiola on Medium]]></description>
        <link>https://medium.com/@adebayoabiola95?source=rss-5e2752a5c05e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DYE3gXHyDlzt169PdbG5VA@2x.jpeg</url>
            <title>Stories by Adebayo Hamdalat Abiola on Medium</title>
            <link>https://medium.com/@adebayoabiola95?source=rss-5e2752a5c05e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:50:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adebayoabiola95/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[Human Resources Analysis]]></title>
            <link>https://medium.com/@adebayoabiola95/human-resources-analysis-6ad1bf13e856?source=rss-5e2752a5c05e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ad1bf13e856</guid>
            <dc:creator><![CDATA[Adebayo Hamdalat Abiola]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 13:51:10 GMT</pubDate>
            <atom:updated>2024-04-04T13:10:53.341Z</atom:updated>
            <content:encoded><![CDATA[<h3>About dataset</h3><p>This data was source from kaggle.com.</p><p>This data have a total of 311 rows and 36 columns which consist of Employee_Name, EmpID,MaritalStatusID, GenderID, EmpStatusID, DeptID, PerfScoreID, FromDiversityJobFairID, Salary, Termd, PositionID, Position, State, Zip, Date of birth, Sex, MaritalDesc, CitizenDesc, HispanicLatino, RaceDesc, DateofHire, DateofTermination, TermReason, EmploymentStatus, Department, ManagerName, ManagerID, RecruitmentSource, PerformanceScore, EngagementSurvey, EmpSatisfaction, SpecialProjectsCount, LastPerformanceReview_Date, DaysLateLast30 and Absences.</p><h3>Project Task</h3><ol><li>What is the number of employees by each year?</li><li>What department/position has the highest salary ?</li><li>How diversified are the marital status of employees ?</li><li>Does marital have effect on performance of employees?</li><li>How diversified are the race of employees ?</li><li>Is there any relationship between employees performance and their manager?</li><li>Is there any relationship between employees satisfaction and their manager?</li><li>What is the reason why most employees terminate their contracts?</li><li>What amount of salary is being paid for each position?</li><li>What recruitment is the highest?</li><li>How satisfied are the employees</li><li>What is the total number of employees in each department?</li></ol><h3>Data Exploration</h3><p>I explore the data using power query and the following was noted.</p><ul><li>No duplicate was found</li><li>There are blank cells in the data</li><li>Improper data types which I change back to the proper type</li><li>No outliers</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwFt1Q-d8-QM2PfidVmEIQ.png" /><figcaption>Data exploration and transformation.</figcaption></figure><h3>Observation</h3><p>There is a sharp increasement in number of employees in 2011 which is equivalent to higher salary been paid. The number of employees decline downward from 2015 to 2018.</p><p>44% of employees are married, 40% are single, while 30%, 4% and 3% are divorced, separated and widowed respectively.</p><p>White, Black and Africa America, and Asia are mostly hired with White race having the highest number of 187 employees.</p><p>56% of the employees are female while the rest account for male</p><p>Production department have the highest number of employees 209, followed by IT/IS, Sales, Software Engineering, Amin Office and Executive Office.</p><p>President &amp; CO have the highest salary of £250,000 and administrative assistant have the least salary of £52,000.</p><p>Production department average salary range from £45,000 — £88,000 IT/IS, Sales, Software Engineering and Amin Office range from £50,000–150,000 , £55,000 — £180,000 and £77,000 — £105,000 respectively.</p><p>Most reason why employees resigned was due to a better position in other company, some were unhappy while some request for increase in salary. These are the most frequently occur reasons.</p><p>The highest platform for recruitment is Indeed followed by Linkedin, Google Search, Employee referral, Diversity job fair, CareerBuilder, Website, Others and Online web application.</p><p>Most employee select the rate of satisfaction as either Fair, Excellent or Good. A few numbers are Poorly satisfy.</p><h3>Insights</h3><p>More employee was hired in 2011 and 2014.</p><p>Marital status has no effect on the performance of employees</p><p>Company is more dominated by white, black and african america and asia.</p><p>Employees in the same position are not paid the same salary and this is not due to any visible reason.</p><p>Managers supervising employees have on employee’s performance and satisfaction.</p><p>High number of employees that voluntarily terminate their contract have a fully meet performance.</p><h3>Recommendation</h3><p>Regular survey for employees should be carried out at a particular time interval (quarterly) in other to have more information from employee regarding management system of the company. This will helps reduce losing competent employees.</p><p>Click the link below to view my dashboard.</p><p><a href="https://app.powerbi.com/view?r=eyJrIjoiYmNiNDgzZGYtMmUxNy00ZDZhLWFiODItN2Q2ZThiMzc1NjNiIiwidCI6ImRmODY3OWNkLWE4MGUtNDVkOC05OWFjLWM4M2VkN2ZmOTVhMCJ9">https://app.powerbi.com/view?r=eyJrIjoiYmNiNDgzZGYtMmUxNy00ZDZhLWFiODItN2Q2ZThiMzc1NjNiIiwidCI6ImRmODY3OWNkLWE4MGUtNDVkOC05OWFjLWM4M2VkN2ZmOTVhMCJ9</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ad1bf13e856" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instacart store analysis using SQL]]></title>
            <link>https://medium.com/@adebayoabiola95/instacart-store-analysis-using-sql-b2bcb53c92fd?source=rss-5e2752a5c05e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2bcb53c92fd</guid>
            <dc:creator><![CDATA[Adebayo Hamdalat Abiola]]></dc:creator>
            <pubDate>Mon, 18 Mar 2024 10:41:31 GMT</pubDate>
            <atom:updated>2024-04-07T21:56:33.006Z</atom:updated>
            <content:encoded><![CDATA[<h3>About dataset</h3><p>The dataset consists of 4 tables; Aisle, Departments, Orders and Products. Aisle table consists of aisle and aisle_id with 134 rows. Departments table consists of department and department_id with 21 rows. Orders table consists of order_id, user_id, product_id, quantity, order_date, order_dow, order_hour_of_day, days_since_prior_order and order_status with 1,048,575 rows. And products table consists of product_id, product_name, aisle_id, department_id, unit_cost and unit_price with 49,688 rows.</p><p>Sql server was use for this analysis.</p><h3>Exploration and data cleaning</h3><p>I explore the dataset by checking for duplicates and null value in each table. No duplicate or null value was found</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNORyayX8W0w3T_3cFrScQ.png" /><figcaption>check for duplicate</figcaption></figure><h3>Business Questions</h3><p>Create a Database with the provided datasets and answer the following business questions:</p><p>Q1. What are the top-selling products by revenue, and how much revenue have they generated?</p><p>Q2. Which aisles have the highest sales volume?</p><p>Q3. Which 3 department generated the most profit in 2019?</p><p>Q4. Which product generated the most profit as at Easter of 2022?</p><p>Q5. Which year did Instacart generate the most profit?</p><p>Q6. What are the top 5 products that generated the most revenue from Xmas 2022 till 2nd of January 2023 and their profits?</p><p>Q7. What time of the day has the highest order volume during the entire Covid Period?</p><p>Q8. What is the total revenue generated in Qtr. 2 &amp; 3 of 2016?</p><p>Q9. Which 3 products do people buy at night(2020</p><p>2022)?</p><p>Q10. What is the total revenue generated from juice products?</p><h3>Solution</h3><p>Q1. What are the top-selling products by revenue, and how much revenue have they generated?</p><p>In other to answer the question, I join the products table and orders table because the orders table has the quantity sold and the products table has the unit price of each product. To get the total revenue generated for each product, I multiply the quantity sold for each product by the unit price. I sum up the (quantity * unit_price) and group by product_name in other to get the total revenue for each product_name. Finally, I order by total_revenue in descending order to have the list from top sold product to the least sold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kA85EdmThqx8Xlu0Y2pt3A.png" /></figure><p>The top selling products by revenue are as shown in the query above with vitamin D IU which generates the highest revenue.</p><p>Q2. Which aisles have the highest sales volume?</p><p>This question was answered similarly to Q1. But aisle table was join to the previous two tables and it was group by aisle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*WI8X2mvjcdzw3Freeo4MDA.png" /></figure><p>Missing aisle have the highest sales of 4,067,957.</p><p>Q3. Which 3 department generated the most profit in 2019?</p><p>This was answer similarly to Q2. But the aisle table was substituted with department table and the top 3 departments was selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQxLjcIpItNFWiZXhRHNxA.png" /></figure><p>Personal care has the generate the highest revenue of 2,298,858.30 follow by snacks and pantry with total revenue of 2,196,777.60 and 1,866,680.10 respectively.</p><p>Q4. Which product generated the most profit as at Easter of 2022?</p><p>I join the products table and orders table together, then subtract unit price from unit cost and multiply by quantity as total_profit in other to get the profit. I use the WHERE statement to filter out Easter date in 2022 and order by total_profit in descending order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*lcvLR1efhjfFrroVoTs4Hw.png" /></figure><p>Homemade membrillo quince paste generate the most profit of 50 on Easter 2022.</p><p>Q5. Which year did Instacart generate the most profit?</p><p>This was answer similarly to Q4. But the year was select from order_date column and group by the year from order_date column in descending order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y09DpdVj3iriPTzY69Y_Ow.png" /></figure><p>2020 generate the most profit of 1,928,128.97</p><p>Q6. What are the top 5 products that generated the most revenue from Xmas 2022 till 2nd of January 2023 and their profits?</p><p>This was answer similarly to Q5. But I select the product_name, total_revenue and total_profit then filter the date from 25th of December 2022 to 2nd January 2023 using WHERE statement along with AND.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNKzmnT1YeKHQ5KDferCNw.png" /></figure><p>Milk American cheese single generate the most revenue from Xmas 2022 to 2nd January, 2023 follow by Smokestack mixed four, Organic chunky vegetable soup, Jammers grape juice drinks and Clinical sport strength deodorant.</p><p>Q7. What time of the day has the highest order volume during the entire Covid Period?</p><p>I use the COUNT function to find the number of times an order was placed at a particular time and the WHERE statement to filter out Covid period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nPVdk0qLVxjgxs3x7uE_A.png" /></figure><p>10am has the order volume of 9,828 during the entire Covid period.</p><p>Q8. What is the total revenue generated in Qtr. 2 &amp; 3 of 2016?</p><p>I select the sum of (quantity * unit_price) as total_revenue and filter out quarter 2 &amp; 3 of 2016 using WHERE statement and DATEPART function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*3a1_taYVEAO_2tltG-gXcg.png" /></figure><p>The total revenue generated in 2nd and 3rd quarter of 2016 is 8,599,848.31.</p><p>Q9. Which 3 products do people buy at night(2020-2022)?</p><p>I select the product_name, order_hour_of_day and count the order_hour_of_day as frequency_purchased. Then filter out 2020-2022 night sales only ( from 19:00 to 23:00)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*wsQ_25Mb9y4M98qq-VZN6Q.png" /></figure><p>Organic low-fat milk has the highest time (6) of order at night (19:00). Many other products have the same frequency order.</p><p>Q10. What is the total revenue generated from juice products?</p><p>I select the sum of (quantity * unit_price) as total_revenue and filter out product name ‘juice’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*Fml2smmsXyJr_U-GhfGUCA.png" /></figure><p>The total revenue generated from juice product is 1,298.69</p><p>Click on the link below to view the project dashboard.</p><p><a href="https://app.powerbi.com/view?r=eyJrIjoiN2VhODUyZGQtYmFjNS00Y2U4LWJjZDQtNjNhZjUzMDEzZGNkIiwidCI6ImRmODY3OWNkLWE4MGUtNDVkOC05OWFjLWM4M2VkN2ZmOTVhMCJ9">Power BI Report</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*Jgazk0ZuKyP77hv8__sAIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6QcikZYiWYXrYw0fGZ5Pw@2x.jpeg" /><figcaption>Photo by Kelly Sikkema on Unsplash</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2bcb53c92fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Office Sales  Analysis]]></title>
            <link>https://medium.com/@adebayoabiola95/office-sales-analysis-4e194a1a261a?source=rss-5e2752a5c05e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e194a1a261a</guid>
            <dc:creator><![CDATA[Adebayo Hamdalat Abiola]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 08:33:35 GMT</pubDate>
            <atom:updated>2024-03-18T10:43:01.816Z</atom:updated>
            <content:encoded><![CDATA[<h3>Office Sales</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOy-2z4M5oi2rXKDZtJOqw@2x.jpeg" /><figcaption>Photo by Olena Bohovyk on Unsplash</figcaption></figure><h3>Introduction</h3><p>In other to improve one’s learning and skills, you have to keep practicing and as said “Practice make perfect”. Still on my data analytics journey, I decided to work on this dataset that was give to us in a program, Zion Tech Hub, as we completed powerbi section.</p><h3>About dataset</h3><p>The dataset consists of 8 columns with 50 rows of information about customers which includes order date, region, customer’s first name, customer’s last name, items, units, unit cost and unit price.</p><p>For this project , the tool used for analysis and visualization is powerbi.</p><h3>Exploration and Data cleaning</h3><p>I explore the dataset by checking for the following</p><ul><li>Spelling error</li><li>Duplicates</li><li>Null values</li></ul><p>I discovered the dataset is a clean data with no spelling errors, duplicates nor null values.</p><h3>Project Questions</h3><ol><li>What is the total revenue generated by region over time?</li><li>Which products are the most popular in terms of units sold, and how does it vary by region?</li><li>What is the average unit cost of items in each region, and how has it changed over time?</li><li>Who are the top customers by total spending, and what items do they purchase the most?</li><li>Who are the least customers by total spending, and what items do they purchase the most?</li><li>Show the is the total revenue generated by daily trend.</li><li>What is the total profit generated over time</li><li>How much does each item contribute to total revenue.</li></ol><h3>Data Transformation</h3><p>From the dataset give and business questions to be tackled, additional columns had to be created. The columns are;</p><ul><li>Total revenue (multiple the unit price column by units column)</li><li>Total cost (multiple the unit cost column by unit column)</li><li>Profit ( subtract total cost column from total revenue column)</li></ul><h3>Project Answers</h3><p>Q1. What is the total revenue generated by region over time?</p><p>The total revenue generated is 267,546.11</p><p>Q2. Which products are the most popular in terms of units sold, and how does it vary by region?</p><p>Pencil and binder are the most popular products sold and also contribute most to the total sales in all region.</p><p>Q3. What is the average unit cost of items in each region, and how has it changed over time?</p><p>The average unit cost of binder, pencil, pen set, pen and desk is 37, 46, 48, 47 and 25 respectively in central region. Binder, pencil, pen set and pen have an average unit cost of 45, 49, 28 and 54 respectively in the eastern region. And the western region have an average unit cost of 40, 40, 40 and 60 for binder, pencil, desk and pen respectively. While the average unit cost fluctuate from one month to another.</p><p>Q4. Who are the top 5 customers by total spending, and what items do they purchase the most?</p><p>The overall top 5 customers by total spending are Reagan Phelps, Jocelyn Delaney, Seth Stanton, Amal Snyder and Ayanna Mcpherson. They mostly purchase binder follow by pencil, pen and desk.</p><p>Note: Top 5 customers changes depending on the area selected in the dashboard.</p><p>Q5. Who are the least customers by total spending, and what items do they purchase the most?</p><p>The overall least 5 customers by total spending are Dillon Landry, Debra Nunez, Dalton Sandoval, Colorado Rush and Xyla Leonard. They mostly purchase binder follow by pen, pen set and pencil.</p><p>Q6. Show the is the total revenue generated by daily trend?</p><p>This is shown in the dashboard link below</p><p>Q7. What is the total profit generated over time?</p><p>The total profit generated is 130,124.</p><p>Q8. How much does each item contribute to total revenue?</p><p>Pencil contribute a total amount of 95k to the total revenue while binder, pen set, pen and desk contribute 80k, 37k, 37k and 18k respectively.</p><h3>Insights</h3><ul><li>Total revenue generated was 267,546.11.</li><li>Total Profit made was 130,120.</li><li>October has the highest sales of 24,965.11 in 2014 and June has the highest sales of 54,869.59 in 2015.</li><li>In 2014, Binder was the highest item that was sold followed by pencil, pen set, pen and desk.</li><li>In 2015, Pencil was the highest item that was sold followed by binder, pen set, pen and desk.</li><li>Central region generated the highest revenue.</li><li>More revenue was generate in 2015 compare to 2014.</li></ul><h3>Recommendation</h3><ul><li>Pencil and binder should be readily available due to their high demand.</li><li>Stores should be located around offices or school for easy accessibility for the customers.</li><li>Create awareness around schools and offices in other to gain more customers.</li><li>Acknowledge top 5 customers with gift at the year and publicize it in other to encourage people to purchase items from the store more.</li></ul><h3>Limitation</h3><p>There is a lot of inconsistency in the unit cost of the data leading to fluctuation in the analysis been carried out.</p><blockquote>Click the link below to view and interact with the dashboard</blockquote><p><a href="https://app.powerbi.com/view?r=eyJrIjoiMDA0ZTViNjQtMGNjMC00ZTVlLWJlNjAtMjc2YzNiYWFiZTMwIiwidCI6ImRmODY3OWNkLWE4MGUtNDVkOC05OWFjLWM4M2VkN2ZmOTVhMCJ9">Power BI Report</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNT7WKJo71jjKCQuew3sSQ@2x.jpeg" /><figcaption>Photo by Pete Pedroza on Unsplash</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e194a1a261a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DATA ANALYSIS ON COFFEE SALES.]]></title>
            <link>https://medium.com/@adebayoabiola95/data-analysis-on-coffee-sales-025e4f1a8644?source=rss-5e2752a5c05e------2</link>
            <guid isPermaLink="false">https://medium.com/p/025e4f1a8644</guid>
            <dc:creator><![CDATA[Adebayo Hamdalat Abiola]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 23:24:50 GMT</pubDate>
            <atom:updated>2024-04-06T14:51:31.225Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEZ-huLAf9IQjRcainmtig@2x.jpeg" /><figcaption>Photo by Jason Wong on Unsplash</figcaption></figure><h4>About data set</h4><p>The dataset contains information on 1000 customer details, order and products of coffee from 2019 to 2022 from different countries.</p><p>For this project , I used excel to access the dataset, clean and perform Exploratory Data Analysis.</p><p>Below are the outline of the project:</p><ol><li>Explore Dataset and perform Data Validation.</li><li>Data Cleaning.</li><li>Project Questions.</li><li>Solution and Answers.</li><li>Observations.</li><li>Recommendations.</li></ol><h4><strong>Explore dataset and perform data validation</strong></h4><p>I explored the dataset which consist of 3 different tables customer_details, order, and product. I noticed the following</p><ul><li>No duplicate found.</li><li>Irrelevant columns.</li><li>No outliers.</li><li>There was spelling error in some cells.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jEoji7h7l-fkWvgX2jj6vw.png" /><figcaption>Spelling Error in City column.</figcaption></figure><ul><li>The date column is in a numeric format instead of date format .</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*qAYUdUHyYUwlxoyhSQ2JHw.png" /><figcaption>Numeric format in order date column.</figcaption></figure><ul><li>There are blank cells in the email and phone number column.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWnkuUzhTt1L6Pmn5R5gyg.png" /><figcaption>Empty cells in email and phone number column.</figcaption></figure><h4>Data cleaning</h4><ul><li>Correction of spelling errors found.</li><li>Change the date order column data type to date format.</li></ul><h4>Project Questions</h4><p>Key Performance Indicators (KPIs) and metrics:</p><ol><li>Trend of Total Sales for Coffee Types: Develop a line chart illustrating the trend of total sales across different years for each coffee type.</li><li>Sales by County: Present sales data in a visual format, such as a bar chart or map, based on distinct counties.</li><li>Top 5 Customers: Generate a table or chart highlighting the top 5 customers based on their contribution to total sales.</li><li>Total Quantity Ordered for Each Coffee Type: Utilize a bar or pie chart to visually represent the quantity ordered for each coffee type.</li><li>Total Sales: Calculate and display the overall total sales as a key summary metric.</li><li>Total Quantity Ordered: Provide a summary of the total quantity ordered across all coffee types.</li><li>Years (Time Series): Implement a user-friendly filter for selecting and analyzing data across different years.</li><li>Loyalty Cards: Allow users to filter data based on the presence or absence of loyalty cards.</li><li>Size: Provide a filter option to segment data by coffee size.</li><li>Roast Types: Include a filter for users to explore data based on different coffee roast types.</li></ol><h4>Solution and Answers</h4><p>As mentioned earlier, the dataset consists of 3 different tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDnXY1SAYhsUT3QWEaXYCQ.png" /><figcaption>Customer_details Table.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*13ipUkHbi01F2iaIRaAVGw.png" /><figcaption>Order Table.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*8IP3QMNvfyLOE5cUxKEpRQ.png" /><figcaption>Products Table.</figcaption></figure><p>Using VLOOKUP function, I merge important column from customer_details table and products table to orders table needed to solve question that were asked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K22shwzl0DIiMMkMf5GZbA.png" /><figcaption>Fetch out important column to order table</figcaption></figure><p>I also use the IF function to replace abbreviate in coffee type column and roast type column to their full name. Where Rob is Robuster, Exc is Excelsa, Ara is Arabica and Lib is Liberica for coffee type while M is Medium, L is Light and D is Dark for roast type column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wk7k_W96GDMk7FDclfFvnQ.png" /><figcaption>Substitute abbreviates with full name</figcaption></figure><p>I create a new column which I name “Sale” to calculate the sales made, by multiplying the Unit Price column with the Quantity column</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7T4QpZmR6HZKOWnvAvyJUg.png" /><figcaption>Sale column created</figcaption></figure><p>In other to solve the above questions, I created pivot table and chart for each question.</p><p>1. Trend of Total Sales for Coffee Types: Develop a line chart illustrating the trend of total sales across different years for each coffee type</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUw7MCx6V-66ztLEpw5SRw.png" /></figure><p>From the pivot table and the line chart, it can be concluded that year 2021 has the highest sales of $13,766. Although year 2022 data was only collected from January to August, but comparing those months sales to that of 2022 January to August, it relatively low to that of 2021.</p><p>2. Sales by County: Present sales data in a visual format, such as a bar chart or map, based on distinct counties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*1xw89i2J7MR6HGyn7zGgow.png" /></figure><p>The above illustration show that United States made the highest sales of $35,639 followed by Ireland and United Kingdom with $6,697 and $2,799 respectively.</p><p>3. Top 5 Customers: Generate a table or chart highlighting the top 5 customers based on their contribution to total sales.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*iEYaoJgRt0QQwRVJWOsNWA.png" /></figure><p>These are the top 5 customers with the highest purchase. Customer ID was use in other to protect the customer’s real identity.</p><p>4. Total Quantity Ordered for Each Coffee Type: Utilize a bar or pie chart to visually represent the quantity ordered for each coffee type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*byQEkF8RFYYS_R0x1MANTQ.png" /></figure><p>From the above information, Arabica coffee type has the highest quality ordered of 947 and Liberica having the lowest quantity ordered of 854.</p><p>The other question were answered by constructing a complete interactive dashboard using timeline and slicer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zsHY4KqvQwQOZkNKVQASJw.png" /><figcaption>Complete Dashboard.</figcaption></figure><h4>Observations</h4><ul><li>The total revenue generated from 2019 to 2022 was $45,134.</li><li>The total quantity ordered from 2019 to 2022 was 3,551.</li><li>2021 has the highest sales of $13,766.</li><li>The total number of customers that use loyalty card amount to 479 with total sales of $20,918 while those that didn’t use the loyalty card are 521 with total sales of $24,216.</li><li>The customer ID with the highest purchase is 27930–59250-JT while the customer ID with the highest purchase that use loyalty card is 86579–92122-OC.</li><li>Coffee size of 0.5 has the highest quantity ordered generating $7,030 while coffee size 2.5 has the lowest quantity ordered of 841 with the highest sales of $23,786. This shows that the bigger the size sold the more revenue generated.</li><li>The Light Roast type generates the highest revenue of $17,354 with the highest quantity ordered of 1,230 followed by Medium and Dark with revenue of $14,600 and $13,179 respectively.</li><li>United State has the highest sale of $35,639 while Ireland and United Kingdom have the sales of $6,697 and $2,799 respectively.</li></ul><h4>Recommendation</h4><ul><li>The management should create more awareness on loyalty card as some customers are not yet registered.</li><li>Create awareness on social media social, open social media account for the coffee shop and make adverts.</li><li>Ask for customer’s feedback in other to know the pros and cons of the business especially in United Kingdom and Ireland due to the low sales experienced.</li><li>Allow sales of other snacks and pastries for additional income for the business.</li><li>Stay friendly to customers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60EO9vY2q7XuMLNlaSLAjA@2x.jpeg" /><figcaption>Photo by Hanny Naibaho on Unsplash</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=025e4f1a8644" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DATA CLEANING CHALLENGE USING FIFA21 DATASET]]></title>
            <link>https://medium.com/@adebayoabiola95/data-cleaning-challenge-using-fifa21-dataset-31a8cdb7e548?source=rss-5e2752a5c05e------2</link>
            <guid isPermaLink="false">https://medium.com/p/31a8cdb7e548</guid>
            <dc:creator><![CDATA[Adebayo Hamdalat Abiola]]></dc:creator>
            <pubDate>Thu, 30 Mar 2023 16:32:11 GMT</pubDate>
            <atom:updated>2023-03-30T16:32:11.977Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qrk6IsIlVtBzgac5" /><figcaption>Photo by <a href="https://unsplash.com/@historysoccerof?utm_source=medium&amp;utm_medium=referral">Andy Macfarlane</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Introduction</p><p>Data Cleaning is a very crucial aspect of data analysis. It involve detecting and correcting corrupt data to enable a good result. Inaccuracy in data can lead to wrong conclusions. Data cleaning serves as the bed rock for a good analysis and visualization.</p><p>A data cleaning challenge was organized by Promise Chinonso for beginners, intermediate and expert data analyst. The challenge was very tedious because of how dirty the data was. I’m glad I participated in the challenge. Microsoft excel was the tool use for cleaning the data.</p><p>About the data</p><p>The dataset consists of 18,979 rows and 77 columns with the rows consisting of information about each footballer. It was got from kaggle named as FIFA21.cvs which consist of player’s ID, Name, Full Name, Photo Url, Player Url, Nationality, Age, Overall Rating, Potential Rating, Club, Contract Start, Contract End, Positions, Height (cm), Weight (kg), Preferred Foot, BOV, Best Position, Joined, Loan Date End, Value (€), Wage (€), Release Clause (€), Attacking, Crossing, Finishing, Heading Accuracy, Short Passing, Volleys, Skill, Dribbling, Curve, FK, Accuracy, Long Passing, Ball Control, Movement, Acceleration, Sprint, Speed, Agility, Reactions, Balance, Power, Shot Power, Jumping, Stamina, Strength, Long Shots, Mentality, Aggression, Interceptions, Positioning, Vision, Penalties, Composure, Defending, Marking, Standing Tackle, Sliding Tackle, Goalkeeping, GK Diving, GK Handling, GK Kicking, GK Positioning, GK Reflexes, Total Stats, Base Stats, Weak Foot Ability, Skill Moves, Ability, Attacking Workrate, Defensive Workrate, IR, Pace, SHO, PAS, DRI, DEF, PHY, Hits.</p><blockquote>Goals</blockquote><blockquote>The goals of this project is to learn, improve skill in data cleaning, networking (as a community was created during the challenge) and build a portfolio-worthy project.</blockquote><p>Objectives</p><p>The following are what was to be looked out for;</p><ul><li>Incorrect data types</li><li>Null entries</li><li>Missing values</li><li>Duplicate entries</li><li>Errors in spellings and values</li><li>Wrong calculations across rows and columns</li><li>Irrelevant data</li><li>Outliers</li></ul><p>Observation</p><p>Using the filter tool on each column, I noticed the following;</p><ol><li>There are special characters in name, long name and nationality column</li><li>The club column as excess space</li><li>The contract year are join together (start year and end year)</li><li>There is inconsistency in unit use for weight and height column</li><li>Loan date end column as alot of blank cells</li><li>The number in value, wage and release clause column are abbreviated with K and M with a special character before the numbers.</li><li>W/F, SM and IR also have special characters after every number</li><li>Hit column as a lot of blank cells and some abbreviated number</li></ol><p>My Data Cleaning Procedures</p><p>Microsoft Excel was the tool I used for the challenge. The dataset was zipped so I extracted the files and open with Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUpTgs0jGw_3-nBV8mj94w.png" /><figcaption>preview of the raw dataset</figcaption></figure><p>Firstly, I made duplicate of the data before I started cleaning so as to have the original data. I check for the correct spelling of some player’s name and notice some similarity in the way the special characters are so I used the find and replace tool to get rid of the special characters in name, long name and nationality column. I also use the spelling tool to correct spelling error in nationality column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*cAyMLD5hYM3TxQixatRjpA.png" /><figcaption>Using find and replace to get rid of the special characters.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*hjZKunpjeK_gsf9bXIe3Hw.png" /><figcaption>Before</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*r82Et16H9if9NjsQXgzJbw.png" /><figcaption>After</figcaption></figure><p>For the club column, I add an extra column after the club column and use “CLEAN” function on the new column to eradicate the spaces then delete the previous club column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/125/1*WhJvoQWb9k3-i-rrw2dIZA.png" /><figcaption>Before</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*SCOMCf2QdchnQthXdaTkKg.png" /><figcaption>After</figcaption></figure><p>I decide to split the contract column into two column, Contract Begins and Contract End using text to column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75w9WPEqWmdBkFdJS__Gkg.png" /><figcaption>Using text to column to split the contract year.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*FHPVL79zyAFFA_KWF9JFmQ.png" /></figure><p>Using filter, I notice the End Contract was blank for players who were free and loan. So I filtered out the player that are free and auto fill the end contract column with “free” too to avoid blank cells. I did the same for the players on loan using “on loan” instead of “free”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*1WLsUpENJ8InJb6FjjcuQg.png" /><figcaption>Before</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*3MpjwJjqGWuyftyp_Slrkg.png" /><figcaption>After</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*cMuU5A5okc3bzNjh4LP3Eg.png" /><figcaption>Before</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*5IeVIyD3qkDMGaSgCoscpA.png" /><figcaption>After</figcaption></figure><p>For the height column, I insert a new column after it. I filter out the numbers in cm since I want all the value to be in feet. I convert the values to numbers by eliminating “cm” using find and replace for the calculation to be possible. I use the formula =TRUNC(N2/2.54/12)&amp;”’”&amp;ROUND(MOD(N2/2.54,12),0)&amp;””” and auto fill downward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_i5NIB8BPcSGDl9afNyOQ.png" /><figcaption>Before</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6mAoJl4pr4bNJTXJRHn7Dw.png" /><figcaption>After</figcaption></figure><p>I did the same thing for weight column. I filter out the numbers with lbs as unit since I want the whole column to be in kg. I used the formula =CONVERT(N796,”lbm”,”kg”)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Is4HU8XaJApRnsv-XGnjNw.png" /><figcaption>Before</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pkwmo_1Gxx4MUl_5DVhXlg.png" /><figcaption>After</figcaption></figure><p>I decided to delete the “loan date end” column it has a lot of blank cells and the date is the same as that in contract column.</p><p>The special character in value, wage and release clause column was remove using find and replace while the numeric abbreviation was corrected using the formula; =IFNA(LEFT(S2,LEN(S2)-1)*CHOOSE(MATCH(RIGHT(S2,1),{“K”,”M”}0),1000,1000000),S2)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rq2an8BMyoNqV5K1YaN_xw.png" /><figcaption>Using find and replace to remove special character.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FhscLF1muaLdp7a-gZoEXg.png" /><figcaption>Before</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRU_fXk4eMBVZb8RaOf0Gw.png" /><figcaption>After</figcaption></figure><p>For the hit column, I use filter to pick out numbers that have “K” after them as abbreviate for 1000 and use the same formula as for value and wage column to substitute “K” with thousand. I calculated the average value (Average was approximately 84) of the hit column and use it to fill up the blank cells.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7Y_aB63tOn8JCVXo" /><figcaption>Photo by <a href="https://unsplash.com/@peet818?utm_source=medium&amp;utm_medium=referral">Pete Pedroza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31a8cdb7e548" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>