Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
19 views

Introduction To Data Science Using Python Part1

Uploaded by

salahmohamed38
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Introduction To Data Science Using Python Part1

Uploaded by

salahmohamed38
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

INTRODUCTION TO DATA SCIENCE

Data Science:
 Commonly defined as a methodology by which actionable
insights can be inferred from data.
 Data science allows us to adopt different strategies to explore
the world using data:

Probing Predicting Understandin


Reality Future Events g People
Text

Video
Data:
Facts and Statistics Spread
sheets
collected together Data
for reference or Databases

analysis.
Images

Audio
Introduction to Python
• A variable is a memory location used to store a value which can be
updated.
• Assignment Statements
• Python knows what “type” everything is
• Integer 2,5
• Float 2.3,5.0
• Bool True, False
• String “hello”, ‘welcome’
• We can ask Python what type something is by using:
type() function
• Type Conversions
• Int()
• Float()
• Str()
List
• A collection which is ordered and changeable. Allows duplicate
members.
• Example
thislist = ["apple", "banana", "cherry"]

print(thislist[1]) Access Items

print(thislist[-1]) Negative Indexing

thislist[1] = “Orange“ Change Item Value


Tuple

• A collection which is ordered and unchangeable. Allows duplicate members.


• Example
thistuple = ("apple", "banana", "cherry")

print(thistuple[1])
thistuple[2] = "orange" # This will raise an error

Create Tuple With One Item


thistuple = ("apple",)
print(type(thistuple))

#NOT a tuple
thistuple = ("apple")
print(type(thistuple))
Dictionary
• A collection which is unordered, changeable and indexed.
• thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}

x = thisdict["model"] Accessing Items

thisdict["year"] = 2018 Change Values


Data Analysis Libraries

Pandas

Numpy Scipy

Matplotlib

https://pandas.pydata.org/
https://matplotlib.org/

You might also like