<?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 Edith Ngozi Anyogu  on Medium]]></title>
        <description><![CDATA[Stories by Edith Ngozi Anyogu  on Medium]]></description>
        <link>https://medium.com/@edithngozi01?source=rss-7535bac45ecb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Xgl3e-ycf43ItUg3</url>
            <title>Stories by Edith Ngozi Anyogu  on Medium</title>
            <link>https://medium.com/@edithngozi01?source=rss-7535bac45ecb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 01:26:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@edithngozi01/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[How I carried out Udacity Data Wrangling Project]]></title>
            <link>https://medium.com/@edithngozi01/how-i-carried-out-udacity-data-wrangling-project-964c7916b197?source=rss-7535bac45ecb------2</link>
            <guid isPermaLink="false">https://medium.com/p/964c7916b197</guid>
            <dc:creator><![CDATA[Edith Ngozi Anyogu ]]></dc:creator>
            <pubDate>Sat, 24 Jun 2023 20:20:33 GMT</pubDate>
            <atom:updated>2023-06-24T20:20:33.387Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Data is an important factor that derives decision-making in organizations, institutions, businesses e.t.c. It is estimated that 1.145 trillion MB of data is generated in the world per day. Decision-makers need to make sense of all the data being generated, but data in its form it’s not of much use. If data will be useful it has to go through the process of analysis.</p><p>Data from the real world is rarely clean, making it difficult to work with it. Before analyzing data to make sense of it, data generated will need to be gathered in a format that will be fit for analysis. This is the reason why Data wrangling is an essential skill that anybody working with data should possess.</p><p><strong>What is Data Wrangling?</strong></p><p>Data wrangling is all the process involved in gathering and preparing data in a way it will be fit for analysis, visualizations, or building machine learning models. The quality of results gotten from a data analysis process is a reflection of the quality of the data wrangling performed on the dataset.</p><p><strong>Why Wrangle Data?</strong></p><p>There is this popular saying <em>that professionals who work with data spend on average 80% of their time wrangling data</em>. This is to tell you how important data wrangling is. The process is the foundation of every work that will be done.</p><p>Wrangling makes working with data less tedious, you will be certain that the results of your analysis or models are free from errors, and you will not miss out on vital information from the data. Data from different sources can be merged together during the wrangling process. This process get’s the data ready for mining.</p><p>It helps data professionals to understand the dataset they want to use for analysis. As you can not derive meaningful insight from a dataset if you do not have an understanding of the data.</p><p><strong>Data Wrangling Tools</strong></p><p>The choice of a wrangling tool to use depends largely on two things; the size of the dataset you are working on and the skills you have. The size of a dataset can make it easy or difficult to wrangle with a particular tool. For example, if you have a dataset containing over two million rows it will be impossible to work on the data using Microsoft Excel.</p><p>Wrangling data can be a strenuous exercise especially when you have a large dataset. Data wrangling can be done using manual tools like Microsoft Excel, Google sheet, or any other spreadsheet application. They can be used when you are working with a dataset that is small in size. Although the dataset is small, it is still time-consuming to wrangle data with a spreadsheet.</p><p>The process of data wrangling has been made much easier with the advancement in automated wrangling tools. There are varieties of code and no-code or low-code technologies that can be used for data wrangling.</p><p><strong>No-code/low-code Tools</strong></p><p>These are tools that can be used to wrangle data without writing code, some of them include the following:</p><ul><li>ParseHub: a software used during the data gathering stage, used for scraping data from websites.</li><li>Trifacta wrangler: a no-code tool for aggregating and wrangling data.</li><li>Alteryx Platform: a software that data professionals can use to automate the data wrangling process.</li><li>Microsoft Power Query: built into Microsoft Excel, it has more advanced functionalities.</li></ul><p><strong>Some of the Tools that require code include the following:</strong></p><ul><li>OpenRefine</li><li>SQL</li><li>Python</li></ul><p>In this article, I will be discussing how I wrangled a dataset using Python.</p><p><strong>Data Wrangling can be divided into three stages:</strong></p><ol><li>Gathering data.</li><li>Assessing data.</li><li>Cleaning data.</li></ol><p>The next steps will be a detailed process of what I did at each stage of the data wrangling process, before I take you through the process, here are the Python libraries I used for this project. The code cell has a line that starts with a hashtag, these are called comments in Python. Comments tell you what the code in the cell is about, they are used to make codes easy to understand.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6fd88ace2490beb9f03eba945f4cee35/href">https://medium.com/media/6fd88ace2490beb9f03eba945f4cee35/href</a></iframe><p><strong>Gathering Data:</strong> This is the first stage of the data-wrangling process. It involves collecting the data needed from different sources. There are different ways data can be collected, depending on the data format and source.</p><p>Sources of Gathering Data:</p><ul><li>Databases</li><li>Scraped from website</li><li>Files</li><li>Application programming interface(API)</li></ul><p>Data formats: data can be stored in different formats. These includes :</p><ul><li>CSV (Comma-separated values)</li><li>XLSX (Microsoft Excel File)</li><li>ZIP (Contents are compressed)</li><li>TXT (Plain text)</li><li>JSON (Javascript Object Notation)</li><li>HTML (Hyper Text Markup Language)</li></ul><p>For this Udacity project, I worked with We Rate Dogs Twitter Archive data. The data contains tweets posted on the ‘we rate dog&#39;s Twitter account, people send images of their dogs to them and they rate the dogs with funny captions.</p><p>The data is split into three parts. One is the CSV (comma-separated values) file at hand, the code I used the code below to load it to Jupyter notebook</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/690b677217a61e9ec24330846e7f949a/href">https://medium.com/media/690b677217a61e9ec24330846e7f949a/href</a></iframe><p>The second part of the data is a tsv (tab separated values) file in an Html format. I downloaded the tsv file using the request library in Python with the code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76c256698183f2cc80e949d1ab687003/href">https://medium.com/media/76c256698183f2cc80e949d1ab687003/href</a></iframe><p>For the third part of the data I used Python to extract the data I needed from the tweet-JSON file provided in the Udacity classroom using the code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/232599b4261854fd8a91daa3b7d6b13e/href">https://medium.com/media/232599b4261854fd8a91daa3b7d6b13e/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7a8311ae6c22960c03ba620c66258fb/href">https://medium.com/media/d7a8311ae6c22960c03ba620c66258fb/href</a></iframe><p><strong>Assessing data: </strong>this is the second stage of the data wrangling process. Data is normally assessed for two issues; Quality and Tidiness issues. Quality issues have to do with the content of the data, issues like missing values, duplicates, incorrect spellings e.t.c. When Data has quality issues it is called dirty data.</p><p>Tidiness issues have to do with the structure of the data. Data that has tidiness issues it’s called messy data. These include issues like when you have a dataset that is supposed to be one split into different datasets, multiple columns for values that will fit into one column e.t.c. There are three important thing’s to keep in mind when assessing data for tidiness issues, for data to be tidy it should meet the following conditions:</p><ol><li>Each variable forms a column.</li><li>Each observation forms a row.</li><li>Each type of observational unit forms a table.</li></ol><p>There are two types of assessment:</p><ol><li>Visual assessment.</li><li>Programmatic assessment.</li></ol><p>Visual assessment is manually looking at your data and scrolling through it randomly using a text editor or spreadsheet application in other to detect quality and tidiness issues, while Programmatic assessment is checking your data for quality and tidiness using Python functions and libraries.</p><p>I visually assessed each part of the dataset in Microsoft Excel and documented all the issues I detected while scrolling and randomly checking the data, these issues include columns with predominantly missing values, dog stages split into four columns, source column containing URLs, non-descriptive columns names and inconsistency in column entries.</p><p>I also assessed each part of the dataset programmatically using Python inbuilt functions and documented the issues detected which include, incorrect datatypes, missing values in some columns, duplicated image URLs, and inconsistency in column entries. For each part of the dataset I assessed the following:</p><ul><li>General attributes of the data</li></ul><p>This will display the number of entries in the data and the data type of each colmn.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4747fb51e4ca77aaee516a38fa73dc26/href">https://medium.com/media/4747fb51e4ca77aaee516a38fa73dc26/href</a></iframe><ul><li>Columns that have missing values</li></ul><p>The code below will look through each column in the data and display the one that has missing values.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f67cb37ae824d2955ea8a19f9c0634c7/href">https://medium.com/media/f67cb37ae824d2955ea8a19f9c0634c7/href</a></iframe><ul><li>Duplicated entries</li></ul><p>Most data are recorded by humans there are bound to be errors. The code in the cell below displays the number of duplicated entries in the data, if there are no duplicated entries it returns 0.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6b58811311ea882224626fb0c3c77e2/href">https://medium.com/media/b6b58811311ea882224626fb0c3c77e2/href</a></iframe><p>The codes above were used to assess the CSV file part of the data, the other remaining two parts were also assessed using an adaptation of the same codes.</p><p><strong>Summary of visual assessment findings for each part of the dataset</strong></p><p><strong>Twitter Archive Table</strong></p><ul><li>The following columns ; in_reply_to_status_id,in_reply_to_user_id column, retweeted_status_id, retweeted_status_user_id, retweeted_status_timestamp , have missing values.</li><li>The dog stages are in four different columns.</li><li>The source column showing device used to post tweets contains URLs.</li></ul><p><strong>Image Predictions Table</strong></p><ul><li>Entries in the prediction columns start in lowercase while some entries start in uppercase.</li><li>Nondescriptive column headers.</li><li>Prediction entries are in four different columns.</li></ul><p><strong>JSON Data Table</strong></p><p>No issues were detected.</p><p><strong>Programmatic assessment for quality and tidiness issues for each part of the data</strong></p><p><strong>Twitter Archive Table</strong></p><ul><li>There are missing entries in the name column represented as None.</li><li>Some entries in the name column are a letter and not a name of a dog.</li><li>Another inconsistency is that some names start in uppercase while others start in lowercase.</li><li>Incorrecet datatype for timestamp.</li><li>Information about dog tweets is spread across 3 tables.</li></ul><p><strong>Image Predictions Table</strong></p><ul><li>Duplicate jpg_url column.</li><li>Some dog breeds in columns p1,p2, and p3 are written in lowercase while some start in uppercase.</li></ul><p><strong>JSON Table</strong></p><p>No issues were detected.</p><p><strong>Cleaning Data: </strong>this is the third<strong> </strong>stage of the data wrangling process. I used the Define, Code, and Test strategy to address the issues documented during the assessment stage.</p><p>The solution for each issue raised was defined as an action to be taken. For example, the column that has duplicated entries was defined as “ drop duplicate entries”, code was written that addressed this issue and it was finally tested using code to ensure that the issue was resolved.</p><p>The first step before starting data cleaning is to make a copy of each data table, the cleaning will be done on the copy. This is important, so the dirty or untidy data can be accessed later if there is a need for it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35f9ce842c1e205732fbdad9af718056/href">https://medium.com/media/35f9ce842c1e205732fbdad9af718056/href</a></iframe><p>Part of the project’s specification is that only original tweets should be analyzed, no retweets and replies.</p><p><strong>Define</strong></p><p>I selected rows where retweeted_status_id and in_reply_to_status_id isnull.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/507b14c0c43dd55165741e37c1299028/href">https://medium.com/media/507b14c0c43dd55165741e37c1299028/href</a></iframe><p><strong>Test</strong></p><p>Check that there are no nonnull values in retweeted_status_id and in_reply_to_status_id columns.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f6523235929a61575a4da092c7f9286/href">https://medium.com/media/1f6523235929a61575a4da092c7f9286/href</a></iframe><p><strong>Define</strong></p><p>Drop columns that are not needed for analysis.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/216ee43c01d387d547b703ebb2846bb4/href">https://medium.com/media/216ee43c01d387d547b703ebb2846bb4/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff792352c5461b5abad4a60612bbd3a3/href">https://medium.com/media/ff792352c5461b5abad4a60612bbd3a3/href</a></iframe><p><strong>Define</strong></p><p>Change datatype of timestamp column in twitter_dirty from object (str) to datetime.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c95e655aff09d204afc5e60c96e9f01f/href">https://medium.com/media/c95e655aff09d204afc5e60c96e9f01f/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4293652d44caa1235ab6a1c9fd8d5ae7/href">https://medium.com/media/4293652d44caa1235ab6a1c9fd8d5ae7/href</a></iframe><p><strong>Define</strong></p><p>Extract devices used to post tweets from source column in Twitter archive data. Extract the strings after rel=”nofollow”&gt; and before &lt; in the URL using regular expression.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba6e9a519fc0a8b32ff6677bc4bf943d/href">https://medium.com/media/ba6e9a519fc0a8b32ff6677bc4bf943d/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d548889852bbbd9265f1911a2639963a/href">https://medium.com/media/d548889852bbbd9265f1911a2639963a/href</a></iframe><p><strong>Define</strong></p><p>Replace the None entries in name column of Twitter data with Nan. None is not a dog’s name.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/639c88dec414561e3922505aba58ce76/href">https://medium.com/media/639c88dec414561e3922505aba58ce76/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5a6dd10645367aa980f4bfa667984931/href">https://medium.com/media/5a6dd10645367aa980f4bfa667984931/href</a></iframe><p><strong>Define</strong></p><p>Extract weekday, month, and year columns each tweet was posted from timestamp column. Drop timestamp column after.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/135c581f65878c032e46521ac6e24262/href">https://medium.com/media/135c581f65878c032e46521ac6e24262/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d50f015731d180803d284e7caba32ab4/href">https://medium.com/media/d50f015731d180803d284e7caba32ab4/href</a></iframe><p><strong>Define</strong></p><p>Drop duplicated entries in the jpg_url column in image predictions data.</p><p>Code</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7579b9a0ef23dc271329a7df035afb2a/href">https://medium.com/media/7579b9a0ef23dc271329a7df035afb2a/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3cf8e2ff1d32c8e734b549c23eff096/href">https://medium.com/media/a3cf8e2ff1d32c8e734b549c23eff096/href</a></iframe><p><strong>Define</strong></p><p>Rename columns in image predictions that are not descriptive.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/26001e214c8194be4c740a3cc486e060/href">https://medium.com/media/26001e214c8194be4c740a3cc486e060/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/876b8478b92ac2ff4c417ea5257283b1/href">https://medium.com/media/876b8478b92ac2ff4c417ea5257283b1/href</a></iframe><p><strong>Define</strong></p><p>Change inconsistent column entries to lowercase.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e568ee6de71e1edbc85ed08f6a8e6ad/href">https://medium.com/media/1e568ee6de71e1edbc85ed08f6a8e6ad/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c042a32a36f868b2af64b4228cff55cb/href">https://medium.com/media/c042a32a36f868b2af64b4228cff55cb/href</a></iframe><p><strong>Define</strong></p><p>The dog stages are split into 4 columns, put them together into 1 column so there will be just 1 column for dog stages.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aacea27463cc6f8b62ea5d8640b950e8/href">https://medium.com/media/aacea27463cc6f8b62ea5d8640b950e8/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13ad07b608d46e83deb90bdcc16dd934/href">https://medium.com/media/13ad07b608d46e83deb90bdcc16dd934/href</a></iframe><p><strong>Define</strong></p><p>Merge the 3 data frames, to have one master data frame.</p><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d09b99391fb825cad636906531fc0374/href">https://medium.com/media/d09b99391fb825cad636906531fc0374/href</a></iframe><p><strong>Test</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6f004ce50528d979c55e5a6a10630a9/href">https://medium.com/media/b6f004ce50528d979c55e5a6a10630a9/href</a></iframe><p>Now that the three data frames have been merged, the next thing is to save them as a CSV file before starting the analysis.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf8391cd1c5e930ad1d0c96d3ab962ab/href">https://medium.com/media/cf8391cd1c5e930ad1d0c96d3ab962ab/href</a></iframe><p>After the data wrangling process, the dataset is now fit for analysis.</p><p><strong>Analysis of We Rate Dogs Twitter Data</strong></p><p>Analyzing is the process of identifying variables of interest in a dataset, mainly the dependent and independent variables, and exploring the relationship between the variables. When variables are identified, questions are asked, and the dataset is explored to answer those questions.</p><p>The following are some of the questions I explored in We rate Dogs Data:</p><ul><li>What is the most frequently used device used for posting tweets?</li></ul><p>The code below is used to answer the first question, it will display the number of devices used to post tweets and the frequency of each device.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cbaf1a25843c8c85d26b8128afefaf45/href">https://medium.com/media/cbaf1a25843c8c85d26b8128afefaf45/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*T_Z-SX06Jxji3rGMRsQJVQ.png" /><figcaption>Output</figcaption></figure><p>In exploring datasets, it’s good practice to visualize variables of interest. Visualizations help to show distributions and relationships in detail. Below is a visualization that shows the device used the most to post tweets.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb6a2453e16a0ceb47ad5fd6853b9eb1/href">https://medium.com/media/eb6a2453e16a0ceb47ad5fd6853b9eb1/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*i3-iMNeHKvjwornRI08J6Q.png" /><figcaption>Output</figcaption></figure><p>One look at the chart, and you will know that most tweets are posted from Twitter for iPhone.</p><ul><li>What month were most tweets posted?</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/60171c8833770278a5ca9612173a9366/href">https://medium.com/media/60171c8833770278a5ca9612173a9366/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*JpcYY5S42vyxb8ywRQIcRg.png" /><figcaption>Output</figcaption></figure><p>Most tweets were posted in the month of December, it makes sense because December is usually the holiday season people take a break from work, relax and spend time with their families.</p><ul><li>How many image predictions are not dogs if all three breed predictions are False and how many are dogs if all three breed predictions are true?</li></ul><p>The data has three columns that predict if the images sent are dogs or not. For each entry in the data, if the three image columns are all false it means that the image is not a dog.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/636d427d1e41b072db13fdfed2cd292c/href">https://medium.com/media/636d427d1e41b072db13fdfed2cd292c/href</a></iframe><p>According to image prediction, five hundred and four images sent are not dogs.</p><ul><li>What is the most popular dog stage?</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a514d54633d3994ed4808e9d2153a57a/href">https://medium.com/media/a514d54633d3994ed4808e9d2153a57a/href</a></iframe><p>The dog stage has missing values, most dog&#39;s stage was not recorded.</p><p>It is good to note that Data Wrangling is an iterative process, not a one-off exercise. This means there might be a need for you to go over the stages multiple times until you get the desired results.</p><p><strong>Conclusion</strong></p><p>Whatever your goal or interest in working with data is, data wrangling plays an important role in the actualization of your goals. Data wrangling starts from the point of collecting your data, through the stages of assessing and cleaning.</p><p>During the wrangling process, you determine if your data is dirty, messy, or both. With this, you define how you want to clean up the issues. After cleaning, you test your data to be sure that your cleaning worked the way you intended it to. In other not to miss any cleaning step, it is best to use the Define, Code, and Test strategy at this stage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=964c7916b197" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to load, assess and understand the structure Of your Data in ipython notebook]]></title>
            <link>https://medium.com/@edithngozi01/how-to-load-assess-and-understand-the-structure-of-your-data-in-ipython-notebook-237a2854a19c?source=rss-7535bac45ecb------2</link>
            <guid isPermaLink="false">https://medium.com/p/237a2854a19c</guid>
            <dc:creator><![CDATA[Edith Ngozi Anyogu ]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 10:16:36 GMT</pubDate>
            <atom:updated>2022-11-22T10:16:36.072Z</atom:updated>
            <content:encoded><![CDATA[<p>Data Analysts are interested in gathering, assessing, and analyzing data to drive actionable insights. There are different tools that a Data Analyst can use to work with data these include Microsoft Excel, SQL, Power Bi, Python e.t.c. In this article, I will be focusing on Python.</p><p>Python is a programming language that can be used for a variety of functions by developers and non-developers. Its use includes but is not limited to building websites, developing an application, building machine learning models, data science, data analytics, e.t.c. Python enables Data Analysts to manipulate, analyze data and create different types of visualizations using built-in Python libraries or user-defined functions.</p><p>To fully understand what Python library is all about, think of a traditional library where books are kept so readers can have access to them whenever they want. Python libraries are a collection of previously compiled codes. Programmers use these codes to carry out a specific task on the project that they are working on.</p><p>In other to use a library in Python, you will need to import that library into your notebook using a line of code, you can import the library by giving it an alias (abbreviation) so you won’t have to type the full name of the library each time you want to call it.</p><p>There are different tools that you can use to create a Python notebook that you will use to write codes for your work. You can set up Vscode and launch an ipython notebook or Anaconda and utilize Jupyter Note. Because of its complexity, it’s not a good idea to start with Vscode as a beginner. Google Colaboratory is a superior solution that you can use if you’re a newbie (Google Colab).</p><p>Google Colab is an online Python environment owned by Google. It has all the functionalities available in Jupyter notebook and Vscode, and you can easily work with it without going through any installation process.</p><p>Irrespective of the tool you choose to use, the code syntax is the same, but there is a little difference in the way you load your data to the directory where the Python notebook is. If the data you want to work with and the Python notebook are not in the same directory, and you write codes to assess the data, your codes will not run successfully.</p><p>The steps below list how you can bring in your data to ensure it’s in the same directory as your notebook in Vscode. At this stage you already have your data saved somewhere on your computer, you have installed Vscode and made every other necessary installation inside Vscode, as I stated earlier working with Vscode for the first time is a little bit tricky and complex. Follow this <a href="https://code.visualstudio.com/download">link</a>, to view a detailed guide on the installation process. Steps to bring in your data include the following:</p><ol><li>Open your computer and create a new folder, give your folder a name that you can easily remember.</li><li>Copy the data you want to work with and paste it into the new folder that you created.</li><li>Open Vscode, at the top right corner click on the file.</li><li>Select the open new folder, it will navigate to your computer.</li><li>Select the folder that you created and click ok., it will take you back to Vscode and you can see the list of items in the folder.</li><li>Move your cursor to the line written new folder</li><li>Click on the first icon with a plus sign, that says new file</li><li>Give the file a name and end it with .ipynb and tab enter, for example, if I want to name my file wine the file name will be wine.ipynb. The ipynb attachment is what creates the ipython notebook.</li><li>Double-click on the newly created file with ipynb attachment to open the notebook.</li></ol><p>You can bring in your data to Google Colab, there are two ways you can achieve this, you can upload the data to your Google Drive and connect your notebook directly to your drive or you can upload the data from your computer. One thing to note about Google Colab is that each time you close the notebook and open it again or your internet disconnects you will have to upload the data again. Steps to bring in data include the following:</p><ol><li>Open your Google Drive on your computer and click on new in the top right corner.</li><li>Click on more, scroll down and select Google Colaboratory, it will open a notebook environment.</li><li>Move your cursor and hover around the icons on the right-hand side.</li><li>Click on the file icon that is represented with a box shape.</li><li>Move your cursor around the area labeled files, four icons will appear.</li><li>Click on the first icon and upload to session storage, if you want to bring in the data from your computer storage</li><li>Click on the third icon mount drive, to connect the notebook directly to your Google Drive.</li></ol><p>To work with Jupyter notebook, you will need to install <a href="https://www.anaconda.com/products/distribution">Anaconda </a>or <a href="https://docs.conda.io/en/latest/miniconda.html">miniconda</a>. When you are done with the installation, follow these steps to bring in your data:</p><ol><li>Open Jupyter home page.</li><li>Click on upload.</li><li>Select the data you want to work with and wait for it to load.</li><li>Click on new to open a notebook environment.</li><li>Select Python 3 and a notebook will be opened.</li></ol><p>Data Analysts use Python libraries to work on data. Some of the most commonly used libraries are Pandas, Numpy, Matplotlib, Seaborn e.t.c. When you have your data and notebook in the same directory, the next step is to read in data to the notebook using the Pandas library.</p><p>How you read your data depends on the format your data is in, Pandas is able to read a wide range of data formats, the data could be in CSV, XLXS, TXT, TSV, e.t.c. For example, I will read data that is in CSV format.</p><p>First, import Pandas library using alias pd, you can choose something else as your alias, pd is the conventional alias.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><p><strong>Read data to the notebook</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><p>Appointments_df is a variable name assigned to the dataframe. Df means dataframe, you can give your dataframe any variable name you choose and it is not compulsory to include df in your variable name. The equal to is an assignment operator (=) which means that the values inside the bracket are being assigned to appointments_df or whatever name you choose to give your data. This means that when you call appoinments_df, the values in your data will be displayed.</p><p>In reading your data to the notebook, you have to ensure that the name of the file enclosed in the bracket matches the file name in your directory. If there is a mistake with the file name your code will not execute successfully.</p><p><strong>Display your data</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_eYkeKGs-cQFmwCKkY60Zw.png" /><figcaption>Output</figcaption></figure><p>Going further to assess your data, You can print the first few rows of your data to have an overview of what it looks like, you can also print the bottom entries(rows) in your data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywP2C4BGytyzPdJySJ0gOQ.png" /><figcaption>Output</figcaption></figure><p>The code appointments.head (), prints the first five entries in your data, it will display entries from 0–4 because numbering in Python starts from 0. You can specify the number of entries you want to see it could be less than five or greater than five by putting the number in the enclosed bracket.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f19fSASPdZ3CAzAN3F4WIw.png" /><figcaption>Output</figcaption></figure><p>In the same way, appointments.tail ()prints the bottom five entries, I specified the number of entries to be displayed.</p><p>Manipulating data with Python requires you to understand the data type contained in each column. In Python numerical data are stored as Integers for whole numbers and float for decimals, while letters or alphabets are stored as objects. There are other data types like datetime, categorical date e.t.c.</p><p><strong>Check number of columns and rows and datatype in each column</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mkf-lVokTIV78Jbyz20ksQ.png" /><figcaption>Output</figcaption></figure><p>Python also allows you to see the statistical summary of the numerical columns in your data. It will display statistics like maximum, minimum values, mean, standard deviation, e.t.c.</p><p><strong>Statistical summary</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iyjUouZ97jLDBG5_uRazzA.png" /><figcaption>Output</figcaption></figure><p><strong>Check for missing values in each column.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*6fZWUHZ6h-VKYUmF5EyTxw.png" /><figcaption>Output</figcaption></figure><p><strong>Check for duplicate entries</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85eabe193499abe3a683605823e303e3/href">https://medium.com/media/85eabe193499abe3a683605823e303e3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/100/1*GJJs2aLfgSFp4Io_C20Lgw.png" /><figcaption>Output</figcaption></figure><p><strong>Conclusion</strong></p><p>There are different tools that can be used to launch an ipython notebook, Google Colab allows you to work with a python notebook without going through the download and installation process required by the other tools.</p><p>Each of the tools has a unique process to follow when you want to load your data. The codes above help you to understand your data, the structure, and the variables of interest.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=237a2854a19c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five (5) Things You Need to Know about ALX Udacity Data Analytics Nano Degree]]></title>
            <link>https://medium.com/@edithngozi01/five-5-things-you-need-to-know-about-alx-udacity-data-analytics-nano-degree-91b7d948ac6d?source=rss-7535bac45ecb------2</link>
            <guid isPermaLink="false">https://medium.com/p/91b7d948ac6d</guid>
            <dc:creator><![CDATA[Edith Ngozi Anyogu ]]></dc:creator>
            <pubDate>Fri, 28 Oct 2022 08:04:27 GMT</pubDate>
            <atom:updated>2022-10-28T08:04:27.834Z</atom:updated>
            <content:encoded><![CDATA[<p>ALX Udacity Data Analytics Nano Degree is a three months course on Data Analytics, it is estimated to be worth about $1500. Udacity partners with ALX to give full scholarships on the course. Lessons for the course are hosted in the Udacity classroom. I was opportune to be part of the July 2022 cohort of ALX-Udacity Data Analytics Nano Degree.</p><p>If you are considering applying for this program, there are things you should know before you submit your application:</p><ul><li>The Nano Degree is a highly intensive program, you will need to spend hours in the Udacity classroom going through the lessons, practicing, and completing assessments. You can install Anaconda and Jupyter notebook and practice locally on your computer. Udacity makes provision for students to write their codes in the classroom without going through the process of downloading and installing Jupyter notebook.</li><li>Udacity Data Analytics Nano Degree is 99 percent Python-based. Python libraries are used to teach how to collect, assess, analyze, explore, and visualize data. It is not a beginner course, if you do not know Python you might struggle a bit navigating the course. I advise anyone who is a beginner in Python but is interested in this program to go through <a href="https://www.udacity.com/course/introduction-to-python--ud1110">Introduction to Python</a> a free course on Udacity, this will help you to be better prepared for the program.</li><li>The program requires that you attend mandatory weekly zoom connect and career sessions, with an Udacity-appointed connect and career session lead. Connect sessions are for reviewing weekly classroom activities, it allows students to ask questions and get clarifications on issues they might be having with the course. Career sessions are for preparing students on how to build a career in Data Analytics, how to structure resumes, cover letters, job search, job applications, interview preparations,e.t.c.</li><li>To complete this program, you will be required to complete three Data related projects and four career projects. Each of these projects has specific requirements that you must fulfill, an Udacity reviewer will go through your projects and certify that you fulfilled all the requirements.</li><li>The Nano Degree is self-paced, students can log in to the classroom and take their lessons whenever it is convenient for them. Although it is self-paced, there’s usually a deadline given for submitting each project.</li></ul><p>Udacity is currently accepting applications for its Data Analytics Nano Degree, the deadline for submission is November 9th, 2022. You can follow this <a href="https://nanodegree.alxafrica.com/courses/data-analyst/">link</a> to submit your application.</p><p>Thank you for Reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91b7d948ac6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOW I GOT INTO TECH]]></title>
            <link>https://medium.com/@edithngozi01/how-i-got-into-tech-3cd4e963aae6?source=rss-7535bac45ecb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cd4e963aae6</guid>
            <dc:creator><![CDATA[Edith Ngozi Anyogu ]]></dc:creator>
            <pubDate>Wed, 19 Oct 2022 09:51:38 GMT</pubDate>
            <atom:updated>2022-10-19T09:51:38.622Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, my name is Edith a Data Analyst from Nigeria.</p><p>About ten months ago, when the year (2022) started, I decided to upskill myself and improve my chances of getting a remote job on Upwork or Fiverr; I focused on these two platforms because they were the ones I was familiar with at the time.</p><p>I had earlier taken training in Data Entry, but it was not enough to secure a remote job.</p><p>The second month of the year I stumbled on an Instagram-sponsored ad by Afrofem Coders about ongoing Data Analytics training, I made a connection in my mind, I have a Data Entry background and this is Data Analytics, told myself this might be what I have been looking for, I filled out the application form and submitted immediately.</p><p>At the time, I knew little about tech, coming from a non-mathematical background, in addition to not being great with numbers I thought ‘tech’ was not for me.</p><p>A few weeks later, I got an email that I was accepted to take the training alongside about 1500 students. I happily looked forward to starting my learning. Prior to the training, I had zero knowledge of what Data Analytics was all about. Not performing a little research to understand what the Course was about did not favor me in any way, as I started encountering difficulties navigating through the Course from the very first week.</p><p>The Course instructor did a great job with the introductory part of the program. My issues started with getting familiar with the tools we were required to use during the program. We were to download and install the following tools :</p><ul><li>Anaconda</li><li>VScode</li><li>Python</li><li>DBvisualizer</li></ul><p>The Course required that students should work with Jupyter notebook in VScode. I struggled with setting up my Vscode environment for days because of the installations that I needed to do before I run a Jupyter notebook, working with a Windows 7 operating system at the time added to the issues I was already facing, this was my first challenge.</p><p>Getting my very first line of code to run successfully was a happy moment for me, little did I know that my joy will be cut short by what I consider the most difficult part of my journey to become a Data Analyst, the issue of debugging error codes. It was the most difficult part for me in the sense that it was not something that happened once, at some point it felt like an endless cycle. I can clearly remember how I spent several hours at midnight trying to fix error codes, this was a defining moment for me.</p><p>I felt like giving up several times, I would close VScode and not open it for days, but when I see other students on the WhatsApp group sharing their success and how they were making progress, I found myself returning to continue where I left off. On several occasions, I tried to exit the Whatsapp group because I felt intimidated by how much some students understood the Course, Thank God I didn’t! Lol, if I did, I would have given up completely on Data Analytics.</p><p>The Course progressed, and from Python, we were introduced to other tools; Pivot Tables in Microsoft Excel, SQL, and Tableau. I did not fully understand what Pivot Table was all about I hoped to read more about it to understand it better, SQL was very challenging for me after three classes on it, and I decided that SQL was just not for me. I told myself, “you must not know how to use every tool, you can be a Data Analyst without SQL” so I thought. Working with Tableau at first was confusing for me, but I got better at it with practice.</p><p>As all these were going on, I was managing to complete my weekly assignments, hoping to scale through the 70 percent pass mark as the prerequisite to get a certificate. The Course also required that students would form a group, a maximum of four persons per group, and each group would work and submit a project, not submitting the project meant automatically not being qualified to get the certificate.</p><p>I was hoping to be in a group where other group members would be students who were not beginners in Data Analytics, but unluckily for me, my group members were beginners like me with zero interest in completing the project. Seeing how “unserious” they were, I contacted other students for us to form another, I thought I was being clever. Yet again, luck was not on my side, out of the four group members, it was just me and one other student that showed interest in the project.</p><p>We both decided to work together as the deadline for submission was fast approaching, just when I was about to relax that she would work on the project and I will assist her. She called to inform me that she was carrying out her National Youth Service Corp (NYSC) in a remote village in Akwa Ibom State Nigeria with no electricity and a poor internet connection. That was when I realized the bulk of the work was dependent on me.</p><p>She sent me what she was able to do, I continued from where she stopped, I reached out to other students they gave me helpful tips that I implemented, and was able to complete the project. After completion, the link for submission was already closed. I reached out to the Course instructor — it was difficult to get him to agree to reopen the link — he later reopened the link but on the condition that we would lose five marks for a late submission. Honestly, I did not care about losing five marks I just wanted to submit the work.</p><p>A month later, the final grades were out. I was scared that I wasn’t going to make up the 70 percent pass mark. I did not open the email days after I received it. I consoled myself that if I didn’t make it, I would hold on to the knowledge and forget about the certificate, summoned courage, and opened the email. Guess what! I made 70 percent on the dot!</p><p>This is how I got my first Data Analytics Certificate. The course ended in April 2022. Since then I have completed three more courses on Data Analytics and have two ongoing courses.</p><p>Moving forward, in the coming months I will start applying for Data Analytics internship positions, to get real-world experience.</p><p>Thank you for reading my article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cd4e963aae6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>