UNIT I: Overview of Python and Data Science
1. Introduction to Data Science
Data Science is the process of collecting, cleaning, analyzing, and interpreting data to extract
useful information and support decision-making.
2. Why Python for Data Science
Python is easy to learn, open-source, platform-independent, and has rich libraries.
Example:
print("Welcome to Data Science with Python")
3. Essential Python Libraries
NumPy, Pandas, Matplotlib, Seaborn, SciPy
4. Python Introduction
Python is a high-level, interpreted, object-oriented programming language.
Example:
a = 10
b = 20
print(a + b)
5. Features of Python
Simple, interpreted, object-oriented, dynamic typing
6. Identifiers, Reserved Words, Indentation, Comments
Example:
if 10 > 5:
print("True")
7. Built-in Data Types
String, List, Tuple, Dictionary, Set
Example:
lst = [1,2,3]
[Link](4)
8. Type Conversion and Operators
Example:
a = "10"
b = int(a)
9. Decision Making
Example:
if num % 2 == 0:
print("Even")
10. Looping
for i in range(5):
print(i)
11. Math and Random Functions
import math, random
12. User Defined Functions
def add(a,b):
return a+b