<?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>Forem: fatumakaliku</title>
    <description>The latest articles on Forem by fatumakaliku (@fatumakaliku).</description>
    <link>https://forem.com/fatumakaliku</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%2F913441%2Fb47cf198-12f8-45f5-b970-b4aa333c447c.png</url>
      <title>Forem: fatumakaliku</title>
      <link>https://forem.com/fatumakaliku</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/fatumakaliku"/>
    <language>en</language>
    <item>
      <title>INTRODUCTION TO PYTHON FOR DATA ENGINEERING</title>
      <dc:creator>fatumakaliku</dc:creator>
      <pubDate>Wed, 31 Aug 2022 11:38:52 +0000</pubDate>
      <link>https://forem.com/fatumakaliku/introduction-to-python-for-data-engineering-12oj</link>
      <guid>https://forem.com/fatumakaliku/introduction-to-python-for-data-engineering-12oj</guid>
      <description>&lt;p&gt;Python is a high-level (makes it easy to learn and doesn't require you to understand details of a computer in order to use it), general-purpose (can be used in various domains such as web development, automation, ML, AI), interpreted (written into a source code) programming language.&lt;br&gt;
python is used in data science because it is rich in mathematical tools that are required to analyze data. &lt;br&gt;
python programs have extension &lt;strong&gt;.py&lt;/strong&gt; and is run on the command line by &lt;strong&gt;python file_name.py.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Python Hello World
&lt;/h2&gt;

&lt;p&gt;Here lets create our first python program, hello world program. This will require you to first create a folder and name it lets say &lt;strong&gt;mycode&lt;/strong&gt; where you'll be saving your code files. Then you'll need to launch the VS code and open the folder you created, &lt;strong&gt;mycode&lt;/strong&gt;.&lt;br&gt;
Then create  a new python file, lets name it &lt;strong&gt;app.py&lt;/strong&gt; file and enter the following code and save the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print ('Hello World!')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;strong&gt;print()&lt;/strong&gt; statement is an inbuilt function that returns the message on your screen, here it returns the Hello World! message on the screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Comments.
&lt;/h2&gt;

&lt;p&gt;They are written with &lt;strong&gt;#&lt;/strong&gt; in the beginning.&lt;br&gt;
When writing code sometimes you want to document it, you want to note why a piece of code works and you can do so using comments.&lt;br&gt;
Basically you use comments to explain formulas, algorithms and complex logics. When executing python programs, the python interpreter ignores the comments and only selectively interprets the code. &lt;br&gt;
Python provides three kinds of comments including block comment, inline comment, and documentation string.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Python block comment&lt;/strong&gt;
These comments explain the code that follows below it and its similarly idented as the code that it explains.
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Increase price of cat by 1000
price = price + 1000

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

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Python inline comments&lt;/strong&gt;
These are comments placed in the same line as statements.
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat = cat + 1000 # increase the cat price by 1000

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

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Documentation string.&lt;/strong&gt;
A documentation string is a string literal that you put as the first lines in a code block, for example, a function and documentation strings are called docstrings.
Technically, docstrings are not the comments but they create anonymous variables that reference the strings. Also, they’re not ignored by the Python interpreter.
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def sort():
""" sort the list using sort algorithm """

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

&lt;/div&gt;

&lt;h2&gt;
  
  
  Variables
&lt;/h2&gt;

&lt;p&gt;Variables are labels that you can assign values to. Their sole purpose is to label and store data in memory. This data can then be used throughout your program.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;favorite_animal = "cat"
print(favorite_animal)

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

&lt;/div&gt;



&lt;p&gt;The variable &lt;strong&gt;favorite_animal&lt;/strong&gt; can hold various values at different times. And its value can change throughout the program.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arithmetic Operations
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(15 + 5)  # 20 (addition)
print(11 - 9)  # 2 (subtraction)
print(4 * 4)  # 16 (multiplication)
print(4 / 2)  # 2.0 (division)
print(2 ** 8)  # 256 (exponent)
print(7 % 2)  # 1 (remainder of the division)
print(11 // 2)  # 5 (floor division)

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Comparison and Logical Operators
&lt;/h2&gt;

&lt;p&gt;Python comparison operators are used to compare two values;&lt;br&gt;
==, !=, &amp;gt;, &amp;lt;, &amp;gt;=, &amp;lt;=.&lt;br&gt;
Python Logical Operators&lt;br&gt;
-Logical operators are used to combine conditional statements:&lt;br&gt;
  and, or, not&lt;br&gt;
Python Arithmetic Operators&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Arithmetic operators are used with numeric values to perform common mathematical operations:
+, -, &lt;em&gt;, /, %, *&lt;/em&gt;, //&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Data Types.
&lt;/h2&gt;
&lt;h2&gt;
  
  
  1. Strings
&lt;/h2&gt;

&lt;p&gt;Strings in python are surrounded by either single quotation marks('), or double quotation marks(")&lt;br&gt;
You can display a string literal with the print() function.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Numbers.
&lt;/h2&gt;

&lt;p&gt;There are three numeric types in Python:&lt;/p&gt;

&lt;p&gt;integer&lt;br&gt;
float&lt;br&gt;
complex&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = 1    # int
y = 2.8  # float
z = 1j   # complex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Booleans.
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Booleans represent one of two values: True or False
&lt;/li&gt;
&lt;li&gt;When you run a condition in an if statement, Python returns True or False
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#booleans
a = 1000
b = 200

if b &amp;gt; a:
  print("b is greater than a")
else:
  print("b is not greater than a")

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Lists
&lt;/h2&gt;

&lt;p&gt;Lists are used to store multiple items in a single variable.&lt;br&gt;
Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage and are created using square brackets[]&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# can store any data type
Multiple_types = [False, 5.7, "Hello"]

# accessed and modified
favourite_animals = ["cats", "dogs", "rabbits"]
print(favourite_animals[1]) # dogs
favourite_animal[0] = "parrots"
print(favourite_animal[0]) # parrots

# subsets
print(favourite_animals[1:3]) # ['cats', 'rabbits']
print(favourite_animals[2:]) # ['rabbits']
print(favourite_animals[0:2]) # ['parrots', 'dogs']

# append
favourite_animals.append("bunnies")

# insert at index
favourite_animals.insert(1, "horses")

# remove
favourite_animals.remove("bunnies")

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Dictionaries
&lt;/h2&gt;

&lt;p&gt;Dictionaries are key-value pairs. They are surrounded by {}. A dictionary is a collection which is ordered*, changeable and do not allow duplicates.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;thisdict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
#access,modify,delete
print(thisdict["brand"]) # Ford
print(thisdict["model"]) # Mustang
del thisdict["year"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Loops
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# With the **while** **loop** we can execute a set of statements as long as a condition is true.
i = 1
while i &amp;lt; 6:
  print(i)
  i += 1
# A **for** **loop** is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).
fruits = ["apple", "banana", "cherry"]
for x in fruits:
  print(x)
# Looping Through a String
for x in "banana":
  print(x)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  File I/O
&lt;/h2&gt;

&lt;p&gt;The simplest way to produce output is using the print statement where you can pass zero or more expressions separated by commas.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print "Python is really a great language,", "isn't it?"
# This produces the following result on your standard screen −

Python is really a great language, isn't it?

# Python provides two built-in functions to read a line of text from standard input, which by default comes from the keyboard
str = raw_input("Enter your input: ")
print "Received input is : ", str
# I typed "Hello Python!"
Hello Python

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

&lt;/div&gt;



</description>
      <category>python</category>
      <category>data</category>
      <category>dataengineering</category>
      <category>beginners</category>
    </item>
    <item>
      <title>INTRODUCTION TO DATA SCIENCE.</title>
      <dc:creator>fatumakaliku</dc:creator>
      <pubDate>Tue, 23 Aug 2022 12:30:57 +0000</pubDate>
      <link>https://forem.com/fatumakaliku/introduction-to-data-science-4aa3</link>
      <guid>https://forem.com/fatumakaliku/introduction-to-data-science-4aa3</guid>
      <description>&lt;p&gt;Data science is a mainstream word that has thrown around the world a lot but its actual definition is vague. Basically data science is transforming data into information and then to knowledge in layman's language. Data  itself in its raw form is not useful and that's why data scientists are needed to remove the vagueness of data that's in numerical form. Data is transformed to information through analysis of data to get insights, identifying trends, patterns and correlations as well as contextualizing, applying and understanding the data. &lt;br&gt;
Data scientists have the role in companies to get data, process the data and convert it from its raw format to a cleaner format. They are also tasked with creating visualizations, drawing conclusions for analysis and suggest applications for implementations.&lt;br&gt;
Data science basically involves 3 essential components;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Statistics &lt;br&gt;
Understand different data types that you can encounter because data can come in different ways depending on the field you are in. Also understanding key statistical terms such as means to help give an overview of how data is fluctuating. Also be able to split up, group and segment data points.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data Visualization&lt;br&gt;
Data visualization is a key skill because it helps to show and compare different numbers of variables through graphs that allow for comparison of multiple things at the same time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Programming&lt;br&gt;
Programming is really essential when it comes to data science as it makes it easy to automate, customize, explore, prototype and test the data. Programming helps you by removing roadblocks of depending on other people. Essential packages required in python are pandas for data analysis and other libraries.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Basically data science is about using data to create as much impact for company that can be in the form of insights, in the form of data products or in the form of product recommendations for a company. This is done by tools like making complicated models or data visualizations or writing code and this helps to solve real company problems using data.&lt;/p&gt;

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