Python for Data
Science
Agenda (Day 1)
● What is computational thinking?
● Types of languages
● What is computer programming?
● What is python?
● Why python?
● Python installation
● Basic python concepts
● Python data structures/types
Please install Anaconda first
[Link]
Computational Thinking
A thought process involved in formulating a problem and expressing its
solution in such a way that a computer, human or machine can effectively
carry it out.
Four step process:
– Decomposition (breaking a complex problem down into smaller, more
manageable parts)
– Pattern recognition (identifying patterns or trends within a problem)
– Abstraction (identifying specific similarities and differences among
similar problems to work toward a solution)
– Algorithm (develop step by step instructions for solving the problem)
Computational Thinking
●
Example: Find the sum of all numbers between 1 and 200?
●
Step 1: 200 + 1, 199 + 2, 198 + 3, 197 + 4 etc.
●
Step 2: All pairs have same sum. W e need to figure out how many times
this pattern repeat. (200/2) = 100 pairs
●
Step 3: Sum of each pair x number of pairs (201 * 100) = 20100
●
Step 4: Write steps 2 to 3
●
Find the sum of all numbers between 1 and 1000?
●
(1000+1)*(1000/2) = 500500
●
Where comes the role of programming in computational thinking?
What is a programming language?
• A programming language is a computer language
programmers use to develop software programs,
scripts, or other sets of instructions for computers to
execute.
Compiler vs. Interpreter vs. Assembler
Why Python
•
Python ranked #1 on the IEEE Spectrum list of top programming languages
for 2019.
•
Many big names use (or have used) Python for their products/services.
Some of these are:
•
NASA, Google, Nokia, IBM, Yahoo! Maps, Walt Disney Feature Animation,
Facebook, Netflix, Expedia, Reddit, Quora, MIT, Spotify, Udemy,
Shutterstock, Uber, Amazon, Mozilla, Dropbox, Pinterest, Youtube
•
According to a survey, in the UK in 2015, Python overtook French to be the
most popular language taught in primary schools. Out of 10, 6 parents
preferred their children to learn Python over French.
Linkedin Survey
Stack Overflow
Stack Overflow
Stack Overflow
Stack Overflow
Python Community
• Stackoverflow
• Kaggle
• Github
• Google colab
Python Arithmetic Operators
Python Logical Operators
Python Datatypes
Python Data Types
Indices
Let’s begin the fun
Thankyou