<?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: Biruk Bizuayehu</title>
    <description>The latest articles on DEV Community by Biruk Bizuayehu (@brook1167).</description>
    <link>https://dev.to/brook1167</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%2F1020982%2F339b78d6-ffaa-4e21-b60d-bddfe524e84c.png</url>
      <title>DEV Community: Biruk Bizuayehu</title>
      <link>https://dev.to/brook1167</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/brook1167"/>
    <language>en</language>
    <item>
      <title>Exploratory Data Analysis Ultimate Guide</title>
      <dc:creator>Biruk Bizuayehu</dc:creator>
      <pubDate>Tue, 28 Feb 2023 17:40:00 +0000</pubDate>
      <link>https://dev.to/brook1167/exploratory-data-analysis-ultimate-guide-179e</link>
      <guid>https://dev.to/brook1167/exploratory-data-analysis-ultimate-guide-179e</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Exploratory Data Analysis?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Exploratory Data Analysis (EDA), refers to the critical process of performing initial investigations on data so as to discover patterns,to spot anomalies,to test hypothesis and to check assumptions with the help of summary statistics and graphical representations.&lt;/p&gt;

&lt;p&gt;Exploratory Data Analysis (EDA), also known as Data Exploration, is a step in the Data Analysis Process, where a number of techniques are used to better understand the dataset being used.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understanding the dataset might mean a variety of things, including but not restricted to...&lt;/li&gt;
&lt;li&gt;removing unnecessary variables and keeping only the relevant ones.&lt;/li&gt;
&lt;li&gt;locating outliers, missing values, or mistakes made by humans.&lt;/li&gt;
&lt;li&gt;Knowing the relationship(s) between variables.&lt;/li&gt;
&lt;li&gt;In the end, increasing your insights from a dataset and reducing any chance for error along the process.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;EDA components&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I see three essential parts to data exploration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;being aware of your variables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;tidying up your dataset.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;examining the connections between various variables.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tools available for EDA&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are numerous EDA tools available. Among the most popular tools are:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python&lt;/strong&gt; is a popular programming language that is used in EDA. Pandas, NumPy, Matplotlib, and Seaborn are some of the most popular Python libraries for EDA.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;R&lt;/strong&gt; is a statistical programming language that is used in EDA. The most popular R packages for EDA are dplyr, ggplot2, and tidyr.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Excel&lt;/strong&gt; is a spreadsheet program that can be used for EDA. It includes data visualization tools like charts and graphs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tableau&lt;/strong&gt; is a data visualization tool that allows users to easily create interactive visualizations and dashboards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pandas&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series.&lt;/p&gt;

&lt;p&gt;to work with pandas first download pandas library. If you use pip, you can install Pandas with:&lt;/p&gt;

&lt;p&gt;pip install pandas&lt;/p&gt;

&lt;p&gt;Let see some basic operations in pandas to work with Exploratory Data Analysis.&lt;/p&gt;

&lt;p&gt;import pandas as pd&lt;/p&gt;

&lt;p&gt;df = pd.read_csv('employees.csv')&lt;/p&gt;

&lt;p&gt;df.head()&lt;/p&gt;

&lt;p&gt;The head() method returns a specified number of rows, string from the top.&lt;/p&gt;

&lt;p&gt;The head() method returns the first 5 rows if a number is not specified.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmeekprfe9lggzimno99b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmeekprfe9lggzimno99b.png" alt=" " width="685" height="170"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;df.shape()&lt;/p&gt;

&lt;p&gt;shape attribute in Pandas enables us to obtain the shape of a DataFrame.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;output (1000, 8)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;df.describe()&lt;/p&gt;

&lt;p&gt;describe() method. The describe() function applies basic statistical computations on the dataset like extreme values, count of data points standard deviation, etc. Any missing value or NaN value is automatically skipped.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9c3nje7k53v1uegqnvz6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9c3nje7k53v1uegqnvz6.png" alt=" " width="256" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;df.info()&lt;/p&gt;

&lt;p&gt;The info() method prints information about the DataFrame. The information contains the number of columns, column labels, column data types, memory usage, range index, and the number of cells in each column (non-null values). Note: the info() method actually prints the info.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztrf4oc9hmkes0weyc72.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztrf4oc9hmkes0weyc72.png" alt=" " width="423" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is all about today's article. If you want to learn more about pandas use this pandas documentation from their offical website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pandas.pydata.org/docs/" rel="noopener noreferrer"&gt;Pandas offical doc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for taking the time to read my article and giving me honest feedback.&lt;/p&gt;

</description>
      <category>posters</category>
    </item>
    <item>
      <title>Python 101: Introduction to Python for Data Science</title>
      <dc:creator>Biruk Bizuayehu</dc:creator>
      <pubDate>Thu, 16 Feb 2023 11:33:49 +0000</pubDate>
      <link>https://dev.to/brook1167/python-101-introduction-to-python-for-data-science-1ofd</link>
      <guid>https://dev.to/brook1167/python-101-introduction-to-python-for-data-science-1ofd</guid>
      <description>&lt;h2&gt;
  
  
  PYTHON
&lt;/h2&gt;

&lt;p&gt;Python is a high-level, object-oriented programming language. High-level refers to the fact that this language is simple for people to grasp and it is object-oriented, which means it emphasizes the use of objects to represent real-world entities and to allow interactions between objects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python is simple and easy to learn&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Python is one of the best programming languages to learn if you're just getting started. Whether a user is experienced or not, they will be able to easily grasp each line of code and its purpose due to its basic syntax, English-based commands, and relatively simple layout. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Application of python&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1 Data Science.&lt;br&gt;
2 Machine Learning.&lt;br&gt;
3 Web Development.&lt;br&gt;
4 Computer Vision and Image Processing.&lt;br&gt;
5 Game Development. etc&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Basic&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Variables are containers for storing data values.&lt;/p&gt;

&lt;p&gt;example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = str(3)    # x will be '3'
y = int(3)    # y will be 3
z = float(3)  # z will be 3.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Data Structure&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;List, set, tuples, and dictionary are some of the fundamental data structures used in Python. Every data structure is distinctive in its own way.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;List  

fruits = ['apple','mango','banana']

set

fruits = {"apple", "banana", "mango"}

tuples

fruits = ('apple','mango','banana')

dictionary 

fruits =  {'fruit1':'apple','fruit2':'mango','fruit3':'banana'}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to learn more about python use this python documentation from their offical website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.python.org/3/tutorial/index.html" rel="noopener noreferrer"&gt;Python offical doc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python for Data Science&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to perform data analysis, you need to import specific libraries. Some examples include:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NumPy&lt;/strong&gt; - A powerful library that helps you create n-dimensional arrays.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pandas&lt;/strong&gt; - Used for structured data operations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SciPy&lt;/strong&gt; - Provides scientific capabilities, like linear algebra and Fourier transform.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Matplotlib&lt;/strong&gt; - Primarily used for visualization purposes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scikit-learn&lt;/strong&gt; - Used to perform all machine learning activities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sea born&lt;/strong&gt; -  provides a high-level interface for drawing attractive and informative statistical graphics.&lt;/p&gt;

&lt;p&gt;Let see some basic concepts about numpy and pandas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Numpy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Numpy is a Python library for high-performance data analysis. Numpy provides an array-oriented interface to matrix and vector operations, making it easy to perform complex mathematical operations on large data sets.&lt;/p&gt;

&lt;p&gt;To work with numpy first download numpy library. If you use pip, you can install NumPy with:  &lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip install numpy &lt;br&gt;
&lt;/code&gt;&lt;br&gt;
let see some basic operations in numpy&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# importing numpy

import numpy as np

#create 1d array

arr1 = np.array([10,20,30])
print(arr1)  output array([10, 20, 30])

# create 2d array

arr2 = np.array([[1,2,3],[4,5,6]])
print(arr2)  output   array([1, 2, 3],
                           [4, 5, 6]])

# to get individual element from numpy array we must pass it's index

arr1 = np.array([10,20,30])
print(arr1[0])  output = 10

Nb: index start from zero also we can perform advanced indexing with python slice method.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to learn more about numpy use this numpy documentation from their offical website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://numpy.org/doc/" rel="noopener noreferrer"&gt;Numpy offical doc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pandas&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series.&lt;/p&gt;

&lt;p&gt;to work with pandas first download pandas library. If you use pip, you can install Pandas with:  &lt;/p&gt;

&lt;p&gt;&lt;code&gt;pip install pandas&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Let see some basic operations in pandas&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# importing pandas

import pandas as pd

# loading csv to dataframe

df = pd.read_csv('data.csv')

# It returns the first 5 rows of the Dataframe

 df.head()

    PassengerId Survived    Pclass  Name    Sex Age SibSp   Parch   Ticket  Fare    Cabin   Embarked
0   1   0   3   Braund, Mr. Owen Harris male    22.0    1   0   A/5 21171   7.2500  NaN S
1   2   1   1   Cumings, Mrs. John Bradley (Florence Briggs Th...   female  38.0    1   0   PC 17599    71.2833 C85 C
2   3   1   3   Heikkinen, Miss. Laina  female  26.0    0   0   STON/O2. 3101282    7.9250  NaN S
3   4   1   1   Futrelle, Mrs. Jacques Heath (Lily May Peel)    female  35.0    1   0   113803  53.1000 C123    S
4   5   0   3   Allen, Mr. William Henry    male    35.0    0   0   373450  8.0500  NaN S


# It returns the last 5 rows of the Dataframe

df.tail() 

    PassengerId Survived    Pclass  Name    Sex Age SibSp   Parch   Ticket  Fare    Cabin   Embarked
886 887 0   2   Montvila, Rev. Juozas   male    27.0    0   0   211536  13.00   NaN S
887 888 1   1   Graham, Miss. Margaret Edith    female  19.0    0   0   112053  30.00   B42 S
888 889 0   3   Johnston, Miss. Catherine Helen "Carrie"    female  NaN 1   2   W./C. 6607  23.45   NaN S
889 890 1   1   Behr, Mr. Karl Howell   male    26.0    0   0   111369  30.00   C148    C
890 891 0   3   Dooley, Mr. Patrick male    32.0    0   0   370376  7.75    NaN Q

# It helps in getting a quick overview of the dataset

df.info()  

&amp;lt;class 'pandas.core.frame.DataFrame'&amp;gt;
RangeIndex: 891 entries, 0 to 890
Data columns (total 12 columns):
 #   Column       Non-Null Count  Dtype  
---  ------       --------------  -----  
 0   PassengerId  891 non-null    int64  
 1   Survived     891 non-null    int64  
 2   Pclass       891 non-null    int64  
 3   Name         891 non-null    object 
 4   Sex          891 non-null    object 
 5   Age          714 non-null    float64
 6   SibSp        891 non-null    int64  
 7   Parch        891 non-null    int64  
 8   Ticket       891 non-null    object 
 9   Fare         891 non-null    float64
 10  Cabin        204 non-null    object 
 11  Embarked     889 non-null    object 
dtypes: float64(2), int64(5), object(5)
memory usage: 83.7+ KB

# Return a statistical summary for numerical columns present in the dataset

df.describe()

    PassengerId Survived    Pclass  Age SibSp   Parch   Fare
count   891.000000  891.000000  891.000000  714.000000  891.000000  891.000000  891.000000
mean    446.000000  0.383838    2.308642    29.699118   0.523008    0.381594    32.204208
std 257.353842  0.486592    0.836071    14.526497   1.102743    0.806057    49.693429
min 1.000000    0.000000    1.000000    0.420000    0.000000    0.000000    0.000000
25% 223.500000  0.000000    2.000000    20.125000   0.000000    0.000000    7.910400
50% 446.000000  0.000000    3.000000    28.000000   0.000000    0.000000    14.454200
75% 668.500000  1.000000    3.000000    38.000000   1.000000    0.000000    31.000000
max 891.000000  1.000000    3.000000    80.000000   8.000000    6.000000    512.329200

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to learn more about pandas use this pandas documentation from their offical website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pandas.pydata.org/docs/" rel="noopener noreferrer"&gt;Pandas offical doc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for taking the time to read my article and giving me honest feedback.&lt;/p&gt;

</description>
      <category>graphql</category>
      <category>api</category>
      <category>dotnet</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
