<?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 Arthur Ndubi on Medium]]></title>
        <description><![CDATA[Stories by Arthur Ndubi on Medium]]></description>
        <link>https://medium.com/@keywordniche?source=rss-c95ad5c7a2c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Wj53c3tIMHjeaeIl.</url>
            <title>Stories by Arthur Ndubi on Medium</title>
            <link>https://medium.com/@keywordniche?source=rss-c95ad5c7a2c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:52:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@keywordniche/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[Can You Still Eat Healthy Fast Food]]></title>
            <link>https://medium.com/@keywordniche/can-you-still-eat-healthy-fast-food-9de06d4b727d?source=rss-c95ad5c7a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9de06d4b727d</guid>
            <dc:creator><![CDATA[Arthur Ndubi]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 11:17:13 GMT</pubDate>
            <atom:updated>2023-10-16T11:17:13.829Z</atom:updated>
            <content:encoded><![CDATA[<p>Fast food are known for four things:</p><ul><li>High calories</li><li>High sodium</li><li>High sugar</li><li>High cholesterol</li></ul><p>All these cause high blood sugar, inflammation, obesity, and other health problems.</p><p>As a nutritious conscious person and data analysts, food labels pique my interests a lot. So, I decided to analyze food label of fast food items to know two things:</p><ul><li><strong>Whether I am consuming food that has the right amount of nutrients</strong></li><li><strong>The nutrition status of the food I am consuming</strong></li></ul><p>I picked the fast food nutrition dataset from<strong> </strong><a href="https://www.kaggle.com/datasets/ulrikthygepedersen/fastfood-nutrition?rvi=1"><strong>Kaggle.</strong></a> I conducted the analysis using Postgresql and Tableau visualization. Let’s begin.</p><h3>Cleaning the Dataset</h3><p>To start, I used excel to clean the dataset. Then, I uploaded it to pgadmin4, the PostgreSQL interface. Second, I created the table using the following SQL code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*_HasjD6FF5SUng9fnr18zw.png" /></figure><p>Here’s how the full table looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5lUgPaGrG2_NeK1GdkGtw.png" /></figure><h3>What You Need to Know Before Analyzing the Nutrition Dataset</h3><p>Understanding what’s in these fast food items will help us make healthier decisions. The <a href="https://www.fda.gov/food/nutrition-facts-label/how-understand-and-use-nutrition-facts-label#:~:text=2%2C000%20calories%20a%20day%20is,weight%2C%20and%20physical%20activity%20level."><strong>FDA</strong></a> mandates that all packaged food must have a nutrition facts label. Our dataset has these facts such as calories, calcium, and e.t.c.</p><p>At the top of the Nutrition Facts Label, you’ll see the number of servings in the container’s serving size. The serving size is the amount of food that people can eat at one time and not a recommendation on how much to eat.</p><h3>Understand Percent Daily Value (%DV)</h3><p>Daily value and %DV work together. DVs are the recommended amount of nutrients to eat or not to exceed in a day. The %DV shows how much nutrition is in one serving of packaged food or supplement for your diet. In our case we’ll use the % DV to determine if a serving of food in the fast food dataset is high or low in nutrients.</p><p>So we’ll calculate the percentage to use the %DV. The %DV shows the daily value percentage and tells us if food is nutritious or not. It also indicates if the servings contribute a lot or a little to your daily diet.</p><p><strong>General guidelines %DV according to FDA:</strong></p><ul><li>We consider a nutrient per serving to be low if it provides 5% DV or less.</li><li>Considering 20% DV or more of nutrient per servings as high.</li></ul><p>Now that we have cleared this part, let’s begin our analysis.</p><h3>1.Which is the most popular fast food chain restaurant in our dataset.</h3><p>Here’s the SQL code I used to retrieve the information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*bNF27VRopB0j6glwyWecyA.png" /></figure><p>We have 7 fast food chains with Subway having 32.11% market share followed by McDonalds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lMIPdajXZJ9NudW_yBikrA.png" /></figure><h3>2. Which are the most popular fast food items?</h3><p>To find the results for this, we have to do a text analysis. Here is the SQL code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*BqMCvrbvFU9M-zHiVNqiIQ.png" /></figure><p>The most popular item in Sandwich when visualized using Tableau</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dn8P_fY1A7qYR4l9G9XGcQ.png" /></figure><h3>3.How many fast food items are high in calories</h3><p>Thinking about how many calories you need can guide your healthy choices. The daily value of recommended calories is 2000. If you want to eat fast food items that are less of calories, choose items with food with a lower %DV (5%or less). If you want more, choose foods with a higher % DV (20% or more). So, looking at calories column, we are going to introduce two columns next to it:</p><ul><li><strong>% Daily Value calories (calculate the % percentage)</strong></li><li><strong>Nutrition status (high,low, good)- using a CASE statement</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*lgG1ZzLLdzbdmDBfK8Rq2w.png" /></figure><p>When visualized using Tableau, here&#39;s how it looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z20DlipAxdFiEvqzrSSHgw.png" /><figcaption>Most fast food items are high in calories</figcaption></figure><h3>4. How many fast food items are high in cholesterol</h3><p>To eat healthy fast food and improve your health, consider the amount of cholesterol your body needs. The recommended daily value of cholesterol is 300mg per day. Looking at the cholesterol column, we can add to two extra column to:</p><ul><li>Calculate % daily value of the fast food items</li><li>Find out the nutritional status (high, low, or Good) of fast food items using CASE statements.</li></ul><p>Here is the SQL code to display that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*-pYaRnjYdDpx-puaPkvDAg.png" /></figure><p>Like calories, a lot of fast food have high cholesterol and only a few ones have the right amount. Here is the visualization:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZktaVs6OrqE6SQRw87Xe9A.png" /></figure><h3>5. How many items are high in sodium</h3><p>Excess sodium is connected to high blood pressure, heart diseases, and stroke, says the National Library of Medicine. The daily value of the recommended sodium in a given day is 2300mg. Knowing this number will help you make better choices when picking fast food to eat. If you have health problems, it’s important to eat fast food with less salt. Look for items with 5% or less sodium. A higher blood pressure is the leading cause of stroke and heart diseases. To know the amount of sodium in our food items and whether it is high or low we:</p><ul><li>Calculate the % DV of fast food items</li><li>Find out the nutrition status</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*SCET4lV2awpKmouQtg11Hw.png" /></figure><p>Sodium is so high in most of these items. Here is the stacked bar graph</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oS7-TPAf_lEZwkP7pTobnw.png" /></figure><h3>6. How many items are high in sugar</h3><p>It’s no secret that too much sugar is bad for your health. It causes weight gain, acne, type 2 diabetes, and raises your risk for other health problems. On average, Americans eat 66 pounds of sugar each year, more than the recommended 50 grams per day. Consuming less sugar in your diet means choosing items with a lower % DV (5% or less). Here is the SQL code I used to compute the:</p><ul><li>Percentage of daily value</li><li>Nutrition status (high, low, good) using case statement</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*Jokn8Zy5J1lyrDyqyxOI6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJFJKZd728bBkd1NRRnVVA.png" /><figcaption>sugar content is high.</figcaption></figure><p>Here is how my final and fastfood dashboard looks like. You can also view it on <a href="https://public.tableau.com/app/profile/arthur.ndubi/viz/fastfooddashboards/FastFoodDashboard?"><strong>Tableau Public here</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6HtxECqWGw7jPghrZeSgjg.png" /><figcaption>Fast Food Dashboard</figcaption></figure><h3>Conclusion</h3><p>It’s important to know the nutritional value of the food you are buying. The label will tell you the amount you are getting as well as the recommended serving sizes. Based on the nutritional value the items have you can judge whether you are getting less or more. This was my first dataset and I was using SQL and Tableau. I welcome any tips or criticism on how I could have made it better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9de06d4b727d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>