<?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 Ilori Matthew Temi on Medium]]></title>
        <description><![CDATA[Stories by Ilori Matthew Temi on Medium]]></description>
        <link>https://medium.com/@ilorimatthew493?source=rss-e90d73f0708b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*03C8KkHR7T2F4VeXYBvlfw@2x.jpeg</url>
            <title>Stories by Ilori Matthew Temi on Medium</title>
            <link>https://medium.com/@ilorimatthew493?source=rss-e90d73f0708b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:57:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ilorimatthew493/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[Unleashing the Power of Data Analysis: Analyzing Economic and Social Conditions in Africa with…]]></title>
            <link>https://medium.com/@ilorimatthew493/unleashing-the-power-of-data-analysis-analyzing-economic-and-social-conditions-in-africa-with-12c2c541284f?source=rss-e90d73f0708b------2</link>
            <guid isPermaLink="false">https://medium.com/p/12c2c541284f</guid>
            <dc:creator><![CDATA[Ilori Matthew Temi]]></dc:creator>
            <pubDate>Fri, 26 May 2023 20:13:08 GMT</pubDate>
            <atom:updated>2023-05-26T20:13:08.369Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unleashing the Power of Data Analysis: Analyzing Economic and Social Conditions in Africa with Power BI and Python</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*AB7wUHiPbHyA9oB2sBlhIQ.jpeg" /></figure><p>Introduction:</p><p>Data analysis has emerged as a game-changer in understanding complex issues and driving informed decision-making. In a world where information is abundant, harnessing the power of data has become essential for addressing societal challenges. Recently, I had the privilege of participating in a thrilling Hackathon on Data Analysis, where I delved into the economic and social conditions of Africa using the dynamic duo of Power BI and Python. In this article, I will share my excitement, methodology, and the insights I gained through this exhilarating journey.</p><p>Excitement: Unleashing the Power of Data</p><p>As an avid data enthusiast, I was excited to tackle the economic and social conditions in Africa, a diverse and vibrant continent that encompasses a multitude of opportunities and challenges. This Hackathon presented an excellent chance to explore data-driven approaches to understanding the continent’s development trajectory, uncovering valuable insights that could inform policymaking, social initiatives, and business strategies.</p><p>Methodology: A Powerful Fusion of Power BI and Python</p><p>To embark on this data analysis adventure, I leveraged the combined power of Power BI and Python. This dynamic duo provided me with a robust toolkit to handle data cleaning, visualization, and statistical analysis seamlessly. Let’s delve into the methodology I followed:</p><ol><li>Data Collection and Preparation:</li></ol><ul><li>Identified relevant datasets: Although we were provided with vey robust datasets, I took it upon myself to source data from reputable economic and social organizations, including the World Bank, UNDP, and African Development Bank.</li><li>Conducted data cleaning: Using Python, I performed data cleaning tasks such as handling missing values, removing duplicates, and standardizing formats, ensuring the data was ready for analysis. It is important to note that about 2 of the datasets provided were in Wide data formats, I had to convert them into Long data formats for easy analysis.</li></ul><p>2. Data Integration and Transformation:</p><ul><li>Merged datasets: By leveraging Python’s data manipulation libraries, such as Pandas, I combined multiple datasets to create a comprehensive dataset for analysis.</li><li>Transformed data: I applied various data transformation techniques, including aggregating data, creating calculated columns, and normalizing variables, to enhance the accuracy and relevance of the analysis.</li></ul><p>3. Visual Exploration with Power BI:</p><ul><li>Connected to data sources: Power BI allowed me to connect to the transformed dataset and import it seamlessly.</li><li>Designed interactive dashboards: I created visually appealing dashboards that included charts, graphs, and maps to present the economic and social conditions in Africa effectively.</li><li>Enabled interactivity: Power BI’s interactive features enabled users to filter and explore the data dynamically, facilitating a deeper understanding of the underlying patterns and trends. I have this annoying nack of making my reports as plain and simple as possible</li></ul><p>( maybe that’s why I didn’t win)</p><p>4. Statistical Analysis with Python:</p><ul><li>Conducted descriptive analysis: Python’s libraries, such as NumPy and Pandas, empowered me to perform statistical computations, calculate summary statistics, and gain insights into key economic and social indicators.</li><li>Applied machine learning algorithms: Leveraging Python’s robust machine learning libraries, such as scikit-learn, I explored predictive modeling techniques to understand factors influencing economic growth, poverty levels, and social development.</li></ul><p>Insights: Unveiling the Story of Africa’s Economic and Social Landscape</p><p>Through this comprehensive analysis, I uncovered several key insights that shed light on the economic and social conditions in Africa:</p><ol><li>Economic indicators:</li></ol><ul><li>Identified countries with high GDP growth rates, highlighting potential investment opportunities.</li><li>Explored correlations between economic variables, such as inflation, foreign direct investment, and unemployment rates.</li><li>Analyzed sectoral contributions to GDP, revealing the dominance of specific industries.</li></ul><p>2. Social indicators:</p><ul><li>Investigated education and healthcare access across different countries, identifying areas for improvement.</li><li>Explored the correlation between social development indicators, such as literacy rates and life expectancy, with economic variables.</li><li>Examined gender disparities in education, employment, and political representation, highlighting areas for targeted interventions to promote gender equality.</li></ul><p>3. Regional disparities:</p><ul><li>Uncovered regional variations in economic and social indicators, emphasizing the need for region-specific policies and interventions.</li><li>Explored the impact of factors such as geography, natural resources, and historical context on development trajectories.</li><li>Identified successful case studies within specific regions, offering valuable lessons for promoting inclusive growth.</li></ul><p>4. Predictive modeling:</p><ul><li>Utilized machine learning algorithms to develop predictive models for economic growth, poverty rates, and social development indicators.</li><li>Identified key factors influencing future trends, enabling policymakers and organizations to proactively address potential challenges.</li></ul><p>Conclusion: Empowering Decision-making through Data Analysis</p><p>Participating in the Hackathon on Data Analysis and utilizing Power BI and Python to analyze the economic and social conditions in Africa was an exhilarating journey. The combination of these powerful tools enabled me to clean, integrate, visualize, and analyze data seamlessly, unearthing valuable insights and patterns.</p><p>By leveraging data analysis, we can inform evidence-based decision-making, drive targeted interventions, and promote sustainable development across the African continent. The findings from this analysis have the potential to shape policies, drive economic growth, and foster social progress.</p><p>As we continue to unlock the potential of data analysis, it is crucial to recognize the importance of data ethics, privacy, and inclusivity. Responsible data analysis practices ensure that the benefits derived from data-driven insights are equitable and sustainable, leaving no one behind.</p><p>In conclusion, my experience with analyzing the economic and social conditions in Africa using Power BI and Python has reinforced my belief in the transformative power of data. The journey has been enlightening, and I am excited to continue exploring innovative ways to harness data for positive change. Together, let us unlock the full potential of data analysis to create a brighter and more prosperous future for Africa and beyond (I know it sounds corny, I feel corny typing it too lol)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GC8va2HrD0y2SJkBi-5zWw.png" /><figcaption>FIrst page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMC6xYc3NLa9PZJiQ-rIcQ.png" /><figcaption>Second Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vChc12QuIxx41_08l34DfA.png" /><figcaption>Third Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xl-QX2RZcq7VQCD9asGaRA.png" /><figcaption>Fourth Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afIUPuxhqE2dsMQIapqy9w.png" /><figcaption>Fifth Page</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12c2c541284f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Project (EDA) using Python Pandas Library.]]></title>
            <link>https://medium.com/@ilorimatthew493/data-science-project-eda-using-python-pandas-library-e2e64f1d41bf?source=rss-e90d73f0708b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2e64f1d41bf</guid>
            <dc:creator><![CDATA[Ilori Matthew Temi]]></dc:creator>
            <pubDate>Mon, 01 May 2023 15:25:50 GMT</pubDate>
            <atom:updated>2023-05-26T18:06:21.590Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AajnVHAEyZzX_MjVEE0vCA.jpeg" /></figure><p>Been a while, actually 3 months since my last write-up. This article is basically a product of one of my many late night plays with Data and Python. Ever had to work with multiple data files before? Well for me, working with multiple data files wasn’t new but I remember struggling a little(ok, maybe more than a bit).</p><p>The data that we would be “talking about” is a Sales data that has separate data files divided by months starting from January to December.</p><p>As data becomes more abundant and accessible, the need to extract insights from it has become increasingly crucial. Exploratory Data Analysis (EDA) is a powerful approach that helps data scientists and analysts uncover meaningful patterns, relationships, and trends in data. In this article, we will delve into the world of EDA and understand its importance in extracting valuable insights from data.</p><p>What is Exploratory Data Analysis (EDA)?</p><p>Exploratory Data Analysis (EDA) is the process of visually and statistically examining, summarizing, and interpreting data to uncover patterns, trends, relationships, and anomalies. It involves the use of various techniques, tools, and visualizations to explore and understand the data, identify patterns or irregularities, and generate hypotheses for further analysis.</p><p>Through this article, I will showing the various steps I took to approach a simple EDA. Let’s get straight into it.</p><p>The data I used was a Sales dataset for a store that sold Technological products like phones, batteries, and so on. The dataset can be found on Keith Galli’s YouTube channel (he did a pretty good job with explaining). The project centered around about 5 tasks that basically determined how the data should be transformed.</p><p>First Step:</p><p>The first step was basically to import the important libraries required to carry out the analysis. The libraries I needed specifically were Pandas and Matplotlib.</p><p>Usually after I import the libraries, I dive straight into reading in the data, cleaning and analysis; but this for this particular project, the data was splitted into different excel sheets. This means that there was a need for me to combine the different Excel files. This was done by using a for loop to read in all the data files contained in the folder directory that I used the <em>.concat()</em> method to join all the data files into a singular data file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*_FKVyu9XcPZsqcGklvtuvw.png" /><figcaption>Concatenating several Data files into one</figcaption></figure><p>Second Step:</p><p>The second step involved multiple levels used to Clean and Transform the data. One challenge I had was creating a City column from the Address column. I had to obtain the City name from the address column but, some of the city names were not unique to states. This meant that I had to attach a prefix of the state name to the city name in my City Column. This was done by creating 2 functions; to split the city name and to split the state name. Then I used the <em>.apply()</em> method to make use of the two functions to create my City Column.</p><p>Consider the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*YlGq-6UNVScxOe5m5fNgAg.png" /><figcaption>Creating the City Column.</figcaption></figure><p>Third Step:</p><p>The third step basically just involved playing around with some of the tasks provided by Keith Galli. I have to say, it was really fun.</p><p>The solution to my EDA can be found on my github page. You should totally check out Keith Galli’s YouTube page if you’re into Data Science and you need projects or resources.</p><p>Peep the GitHub link to the code <a href="https://github.com/Matthewtemie/Expository-Data-Analysis"><em>here</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2e64f1d41bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOW TO CONVERT A DATASET FROM WIDE FORMAT TO LONG FORMAT]]></title>
            <link>https://medium.com/@ilorimatthew493/how-to-convert-a-dataset-from-wide-format-to-long-format-e16e92959e9?source=rss-e90d73f0708b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e16e92959e9</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-transformation]]></category>
            <dc:creator><![CDATA[Ilori Matthew Temi]]></dc:creator>
            <pubDate>Thu, 19 Jan 2023 11:12:07 GMT</pubDate>
            <atom:updated>2023-01-19T11:12:07.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oL6sgLJaUYVBFkUL" /><figcaption>Photo by <a href="https://unsplash.com/fr/@kmuza?utm_source=medium&amp;utm_medium=referral">Carlos Muza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>First documentation for the year!! In fact, this documentation is on my first personal project for the year. Little back story, so around November, I applied for a hackathon (10Alytics Datathon) and honestly, I knew it was going to be a hassle to participate fully because of my job plus I had school exams but, I tried participating anyway (who doesn’t want free money). Long story short, I couldn’t participate because the project assigned was not no joke!! Big ups to the organizers of the hackathon. So basically, we were given medical datasets from different countries (it was a bit complicated, can’t really go into details), the interesting thing was that some of the datasets where in the Wide Format (never worked with it before). At the end of the day, I gave up (LOL) but I planned on learning more about this data format, and here we are now. Let’s dive in!!</p><p><strong>WHAT IS A DATA FORMAT?</strong></p><p>A dataset can be written in two different formats: <strong>wide and long</strong>. A <strong>wide</strong> format contains values that <em>do not</em> repeat in the first column while A <strong>long</strong> format contains values that <em>do </em>repeat in the first column. Depending on what you want to do with your data, it may make more sense to have it in a wide or long format.</p><p>Let’s see a visual example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*ON7iC-rYuF3t8ZeWem9L6w.png" /><figcaption>Wide Data Format</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*7Q2iwsqZozLnfF4a94DLDg.png" /><figcaption>Long Data Format</figcaption></figure><p>I will be writing on a step by step process on how I converted a Survey Monkey questionnaire from a Wide data format to a Long data format.</p><p>The cleaning and transformations were done in two parts; Excel and Python. I used excel to model the data in the best way possible for me to work with and the final transformation were done using Python. I will be detailing the Cleaning and Transformation process done in Excel in this article.</p><p>The dataset can be downloaded from the link below:</p><p><a href="https://github.com/Matthewtemie/Data-Transformation/blob/main/Survey_Monkey_Tamp.xlsx">Data-Transformation/Survey_Monkey_Tamp.xlsx at main · Matthewtemie/Data-Transformation</a></p><p>The “Raw_Data” sheet contains the data obtained from the Survey (please note that the data is a dummy dataset). In order to better understand this excercise, I advise going through the dataset. The goal is to make the dataset be arranged in this format:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ml_qke6BW6QiKvMGr7ANVw.png" /></figure><p><strong>Step One:</strong></p><p>Looking at the “Raw_Data” column headers, the headers are confusing and they span across 2 rows. Proper column headers would be needed if we eventually are going to read the data into a Python script. The first step would be to create a new Sheet called “Question”. The first column is named “Raw Question”. Please feel free to name it whatever, as long as it fits into the description. I also name the other columns as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*nbpu-hePpskaAB3W0PwLCw.png" /><figcaption>QUESTION SHEET</figcaption></figure><p>The rows in the “Raw Question” column are populated by copying the cells in row 1 of “Raw_Data” sheet and pasting them by transposing. This can be done by using the “Paste Special” option. The step is repeated for the “Raw Subsquestion” Column but instead of the first row in the “Raw_Data” sheet, we make use of the second row.</p><p><strong>Step Two:</strong></p><p>Now, let’s understand what we’ve just done. We’ve created and populated a “Raw Question” Column and also a “Raw Subquestion” Column. Notice that there are several blank cells in both columns. For the “Raw Question” column, blank cells mean that the previous question asked in the row above or the demographic is still the same as the one below (the empty cell). For the “Raw Subquestion” column, blank cells mean that there were no sub-questions asked after the question (Raw Question). To be able to work with this data, we would need to fill those empty cells with the appropriate questions and sub-questions.</p><p>Now we create a new column named “Question” which would hold the complete questions asked in the survey. Peep the Excel formula used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*NSvCexSSJnZln6RRlGRDlw.png" /><figcaption>If Cell A2 is not equal to null, return cell A2, else return Cell C1</figcaption></figure><p>The formula above just helps us fill the cells with the appropriate questions by using simple logical functions. Pretty cool right.</p><p>We do not need to repeat the same process for the “Subquestion” column since we do not need to feel the empty cells. We could just simply copy and paste the “Raw Subquestion” column as the new “Subquestion” column.</p><p><strong>Step three:</strong></p><p>Now that we have our new improved columns, we can concatenate the two columns to produce the “Question+Subquestion” column using the CONCAT() function. Since we would be making the rows in the “Question+Subquestion” column the new set of headers for the dataset, we would need to copy and paste (use “paste special” to transpose).</p><p>Note: It is necessary to convert the “Question+Subquestion” column to ordinary values so as to be able to transpose into a new sheet as Excel won’t allow us do so if the Column values are “formula generated”.</p><p><strong>Step Four:</strong></p><p>Now that we have the “Question+Subquestion” column. A new sheet named “Edited_Data” is created. The rows in the “Question+Subquestion” column are copied and pasted (transposed) as the table headers. Then the contents of “Raw_Data” are copied into the “Edited_Data”. Now the dataset makes a bit more sense. Let’s not forget, the aim is to make the dataset look like;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuxbCE-2V_whNex5dcWtHQ.png" /></figure><p>Now that the data has been cleaned and transformed to an extent using Excel, the data is then imported and read into a Jupyter notebook where further transformations are done using Python. Please refer to the link below for the code.</p><p><a href="https://github.com/Matthewtemie/Data-Transformation/blob/main/Python%20Project%20-%20Survey%20Monkey.ipynb">Data-Transformation/Python Project - Survey Monkey.ipynb at main · Matthewtemie/Data-Transformation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e16e92959e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>