<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kamandenduati</title>
    <description>The latest articles on DEV Community by kamandenduati (@kamandenduati).</description>
    <link>https://dev.to/kamandenduati</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1029936%2F8a49f070-1f05-461f-b2ab-0e7d305d83de.jpeg</url>
      <title>DEV Community: kamandenduati</title>
      <link>https://dev.to/kamandenduati</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kamandenduati"/>
    <language>en</language>
    <item>
      <title>EXPLORATORY DATA ANALYSIS ULTIMATE GUIDE</title>
      <dc:creator>kamandenduati</dc:creator>
      <pubDate>Fri, 03 Mar 2023 05:49:39 +0000</pubDate>
      <link>https://dev.to/kamandenduati/exploratory-data-analysis-ultimate-guide-4g2a</link>
      <guid>https://dev.to/kamandenduati/exploratory-data-analysis-ultimate-guide-4g2a</guid>
      <description>&lt;p&gt;In this article, I will give you the ultimate experience of EDA(Exploratory data analysis) using the iris dataset. The iris dataset is contained in the sklearn module. First things first, what is EDA? EDA is all about learning about data using summarising and visualization techniques. It's about getting to know about the data, interacting with it and wanting to know the nook and crook about it. &lt;br&gt;
Let's create a simple analogy for EDA so that we can understand what it could mean in layman's terms. For example, the talking stages before an individual decide to date. The question, the interrogations to find out more about the person you want to spend a part of your life with. The same can be said about data, you do all of this to get meaningful information about the data. Hopefully, it made sense.&lt;/p&gt;

&lt;p&gt;What shall we cover?&lt;/p&gt;
&lt;h4&gt;
  
  
  1.How to load the dataset
&lt;/h4&gt;
&lt;h4&gt;
  
  
  2.How to convert the data into a data frame for analysis
&lt;/h4&gt;
&lt;h4&gt;
  
  
  3.A step-by-step guide to analysing the data.
&lt;/h4&gt;
&lt;h2&gt;
  
  
  Let's go!!
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Loading the dataset
&lt;/h3&gt;

&lt;p&gt;First of all, we will be using Jupyter anaconda, you can install &lt;a href="https://docs.anaconda.com/anaconda/install/windows/"&gt;anaconda, Installation guide,&lt;/a&gt; software which comes with jupyter Anaconda pre-installed.&lt;br&gt;
Let's go ahead and import all the tools we will be required to use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import numpy as np
import pandas as pd
from sklearn.datasets import load_iris
import matplotlib.pyplot as plt
import seaborn as sns
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, we load the dataset and give it a variable name.&lt;br&gt;
iris = datasets.load_iris()&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q-x6d9wH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9mvb3vnkg86mlzcvl9l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q-x6d9wH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9mvb3vnkg86mlzcvl9l.png" alt="fig 1" width="860" height="122"&gt;&lt;/a&gt;&lt;br&gt;
Head()&lt;/p&gt;

&lt;p&gt;Next is transforming it into a dataframe for analysis, but first, let's get to know the target and feature variables&lt;/p&gt;

&lt;p&gt;The 'species' column is in numpy form and when converted to a pandas data frame is in float type. As you can see in the diagram after running the head() function. Head()- outputs the first five rows. Tail() gives the last five rows. The info() gives more information on the data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hKtSQKfu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kv7l1u4t95p2nkyw7ls7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hKtSQKfu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kv7l1u4t95p2nkyw7ls7.png" alt="conversion of species from numpy to pandas" width="730" height="514"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The species is converted to their original information as shown above.&lt;/p&gt;

&lt;p&gt;The describe() function gives statistical information on the data given for univariate analysis.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gndz5OQP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bmtmrh0h5jbuuy7x2qx7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gndz5OQP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bmtmrh0h5jbuuy7x2qx7.png" alt="checking for missing values" width="690" height="289"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Function'.isnull.sum()' is used to check if there are any missing values in the data.&lt;br&gt;
Function &lt;code&gt;iris.values_counts('species')&lt;/code&gt; is used to check how many values are in each of the column species variables&lt;/p&gt;

&lt;h2&gt;
  
  
  Univariate analysis and multivariate analysis
&lt;/h2&gt;

&lt;p&gt;The word 'uni' means one, therefore univariate analysis means the analysis of one variable independently. We use graphical data to conduct such analysis. The explanation will be on the diagram.&lt;br&gt;
In multivariate analysis, we try to establish sensible relationships with all the variables.&lt;/p&gt;

&lt;p&gt;Data visualization enables us to conduct such analysis. Boxplots, histogram, histogram with distplots. I will take you through boxplots and histograms. We deduce information from the said plots to give conclusions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5pl1ajAS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4qqhcvj37sii7u20z7db.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5pl1ajAS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4qqhcvj37sii7u20z7db.png" alt="Histogram" width="778" height="341"&gt;&lt;/a&gt;&lt;br&gt;
What have you observed, what is the highest frequency of occurrence and the length of each variable?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2RtK68yI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iq2ddjmrofuwpkgohfto.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2RtK68yI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iq2ddjmrofuwpkgohfto.png" alt="boxplot" width="757" height="491"&gt;&lt;/a&gt;&lt;br&gt;
There are outliers in the sepal width, which need to be removed to improve the efficiency of the machine learning algorithm.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QrOfVKuI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0suxuz17c6vo3dhu1efl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QrOfVKuI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0suxuz17c6vo3dhu1efl.png" alt="correlation" width="556" height="214"&gt;&lt;/a&gt;&lt;br&gt;
We find the correlation between different variables, a negative correlation is indicated by a coefficient closer to -1. A strong coefficient is indicated by a coefficient closer to 1.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0e8Hc_1---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n57vof0bfhsqyyg6u5k2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0e8Hc_1---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n57vof0bfhsqyyg6u5k2.png" alt="Heat map" width="489" height="315"&gt;&lt;/a&gt;&lt;br&gt;
This is a visual representation of correlation.&lt;br&gt;
From the heat map we can see:&lt;br&gt;
Petal width and sepal length are positively correlated&lt;br&gt;
Petal length and sepal length are positively correlated&lt;br&gt;
Petal length and petal width are positively correlated&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dVjn7BTH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u18zsdlldhmxdi5201x1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dVjn7BTH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u18zsdlldhmxdi5201x1.png" alt="Bar graph" width="681" height="440"&gt;&lt;/a&gt;&lt;br&gt;
The bar graph shows each column grouped by species. This gives the ability to compare the values against the values of different species. Observations could include:&lt;br&gt;
-The Sepal length and petal length of Virginica is larger than the sepal length of other species&lt;br&gt;
-The sepal width of Setosa is larger than the sepal width of other species&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;u&gt;Conclusion&lt;/u&gt;
&lt;/h2&gt;

&lt;p&gt;Based on the length and width of the petal/sepal alone we can dare say that versicolor and virginica might resemble in size, but the setosa species is different from other species.&lt;br&gt;
There are many ways you can conduct EDA, but I couldn't go through them because of time constraints and also because you also have to figure out some stuff by yourself. EDA is fun, data analysis is fun.&lt;br&gt;
Until the next article, ciao&lt;/p&gt;

</description>
    </item>
    <item>
      <title>INTRODUCTION TO PYTHON IN DATA SCIENCE</title>
      <dc:creator>kamandenduati</dc:creator>
      <pubDate>Tue, 28 Feb 2023 08:25:42 +0000</pubDate>
      <link>https://dev.to/kamandenduati/introduction-to-python-in-data-science-3ln9</link>
      <guid>https://dev.to/kamandenduati/introduction-to-python-in-data-science-3ln9</guid>
      <description>&lt;p&gt;What is Python? What is data science? Let me do you better, why is Python in data science? Seems like my infinity war reference may have not referenced, but let's not diverge from our focus, these are the pertinent issues I am to assist you to cover as you go through the article. &lt;br&gt;
Data science is the domain of study that deals with vast volumes of data using modern tools and algorithms to find unseen patterns, derive meaningful information, and make business decisions. According to &lt;a href="https://www.ibm.com/topics/data-science#:~:text=Data%20science%20combines%20math%20and,decision%20making%20and%20strategic%20planning."&gt;IBM&lt;/a&gt;, Data science uses a combination of maths and statistics, specialized programming, advanced analytics, Artificial intelligence(AI) and machine learning to cover with specific subject matter expertise to uncover actionable insights hidden in organization's data.&lt;br&gt;
In simple terms, data science refers to the use of statistical, mathematical and computer science to extract insights from data that will assist in decision-making.&lt;/p&gt;

&lt;p&gt;Applications of data science:&lt;br&gt;
We encounter data science every day in ways we may have not realised:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Have you ever wondered how youtube gets to know your taste since youtube recommends channels or even music that you'd prefer to watch and listen to, youtube has complex machine learning algorithms that can analyze your preferences and gives you a recommendation as per the results of the algorithm.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The advertisement that you come across on youtube are at times personalized this is through the help of data science.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pthon
&lt;/h2&gt;

&lt;p&gt;Python is a high-level programming language, which means its a language that is easily understandable by users. It is widely used in the field of data science due to its simplicity, flexibility, and powerful libraries.&lt;/p&gt;

&lt;h3&gt;
  
  
  Advantages of using Python for data science include:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Simple and User-Friendly Syntax: Python has a simple and easy-to-learn syntax that makes it accessible to everyone, even those who are new to programming. The code is easy to read and understand, which makes it easier to write and debug.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Large Community: Python is an open-source language, therefore it has a large and active community of developers who constantly work on improving the language and developing new libraries. This community provides a wealth of resources, including tutorials, documentation, and forums, which makes it easier for beginners to learn the language. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Powerful Libraries: Python has a vast number of libraries that make it a powerful tool for data science. These libraries provide various tools for data manipulation, data analysis, machine learning and visualization, making it easier for data scientists to perform complex tasks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Versatility: Python is a versatile language that can be used for a wide range of applications, including web development, scientific computing, machine learning, and data analysis. This versatility makes it a popular choice for data scient&lt;br&gt;
ists who want to work on different projects.&lt;br&gt;
Python also contains powerful libraries that make it a popular choice for data scientists. These libraries make python a powerful tool for data science and  contain various tools for data manipulation, data analysis, machine learning, and visualization these libraries may include:&lt;br&gt;
NB: These libraries must first be imported to be used in your code&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;1.NumPy: NumPy is a Python library/module that provides support for large, multi-dimensional arrays and matrices and provides various mathematical functions that make it a powerful tool for scientific computing. &lt;code&gt;import numpy as np&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Pandas-provides data manipulation tools for tabular data and provides support for reading and writing data from various file formats.  &lt;code&gt;import pandas as pd&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Matplotlib-a python library that provides tools for visualization and provides support for various types of plots. &lt;code&gt;import matplotlib. pyplot as plt&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Scikit-learn-python library that provides tools for machine learning.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Python plays a crucial role in the data science workflow, which involves the following steps:&lt;/p&gt;

&lt;p&gt;-Data Collection: Data scientists collect data from various sources, including web scraping, APIs, and databases. Python provides various libraries, for example, Beautiful Soup, that make it easier to collect data from websites.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Data Cleaning and Preprocessing: Data needs to be cleaned and preprocessed to remove any errors or inconsistencies. Python libraries, including Pandas and NumPy, provide various tools for data cleaning and preprocessing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Data Analysis: Data scientists analyze the data to extract insights and patterns. Python provides various libraries, including Pandas and Matplotlib, that make it easier to analyze and visualize the data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Machine Learning: Data scientists use machine learning algorithms to build predictive models. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Install python from &lt;a href="https://www.python.org/downloads/release/python-3111/"&gt;Here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Install an IDE-integrated development environment- this eases your coding experience. There are multiple IDEs in the market but I would recommend Visual Studio Code as it is lighter and more efficient. You would be required to install the python extension from visual studio. Here are some guidelines. Click for &lt;a href="https://code.visualstudio.com/docs/python/python-tutorial"&gt;guidance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would also recommend trying out Anaconda, it comes with Python preinstalled and JUpyter anaconda is a powerful tool for creating machine learning algorithms and conducting EDAs. Try it &lt;a href="https://docs.anaconda.com/anaconda/install/windows/"&gt;out&lt;/a&gt;.&lt;br&gt;
To start your journey to understanding python. I recommend the following websites for their awesome tutorials&lt;a href="https://www.w3schools.com/python/"&gt;w3 schools&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;I tried to give you some insights on the fundamentals. It may not be enough but I hope it gives you enough footing to start this long and exciting journey. There are many exciting resources all over the internet that you could use and they are completely free of change. You know what they say, "the best things are free", I don't know who exactly said this but this works in this case. I wish you all the best as you start the journey.  &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
