Data Science & Machine Learning
74.3K subscribers
813 photos
2 videos
68 files
711 links
Join this channel to learn data science, artificial intelligence and machine learning with funny quizzes, interesting projects and amazing resources for free

For collaborations: @love_data
Download Telegram
What happens if we don’t update the condition inside a while loop?
Anonymous Quiz
9%
A) Syntax error
18%
B) Program stops automatically
69%
C) Infinite loop
4%
D) Nothing happens
1
Which function generates a sequence of numbers for looping?
Anonymous Quiz
20%
A) loop()
54%
B) range()
11%
C) generate()
14%
D) sequence()
1
𝗧𝗼𝗽 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻𝘀 𝗢𝗳𝗳𝗲𝗿𝗲𝗱 𝗕𝘆 𝗜𝗜𝗧'𝘀 & 𝗜𝗜𝗠 😍 

Placement Assistance With 5000+ companies.

Companies are actively hiring candidates with AI & ML skills.

Deadline: 28th Feb 2026

𝗔𝗜 & 𝗗𝗮𝘁𝗮 𝗦𝗰𝗶𝗲𝗻𝗰𝗲 :- https://pdlink.in/4kucM7E

𝗔𝗜 & 𝗠𝗮𝗰𝗵𝗶𝗻𝗲 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 :- https://pdlink.in/4rMivIA

𝗗𝗮𝘁𝗮 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀 𝗪𝗶𝘁𝗵 𝗔𝗜 :- https://pdlink.in/4ay4wPG

𝗕𝘂𝘀𝗶𝗻𝗲𝘀𝘀 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀 𝗪𝗶𝘁𝗵 𝗔𝗜 :- https://pdlink.in/3ZtIZm9

𝗠𝗟 𝗪𝗶𝘁𝗵 𝗣𝘆𝘁𝗵𝗼𝗻 :- https://pdlink.in/3OD9jI1

Hurry Up...Limited seats only
1
Python Functions 🐍⚙️

Functions are very important in data science. They help you write reusable, clean, and modular code.

🔹 1. What is a Function?
A function is a block of code that performs a specific task.
👉 Instead of writing the same code again and again, we create a function.

🔥 2. Creating a Function

Basic Syntax
def function_name():
# code


Example
def greet():
print("Hello Deepak")
greet()

Output: Hello Deepak

🔹 3. Function with Parameters

Parameters allow input to functions.

def greet(name):
print("Hello", name)
greet("Rahul")

# Output: Hello Rahul

🔹 4. Function with Return Value (Very Important )

Instead of printing, functions can return values.

def add(a, b):
return a + b
result = add(5, 3)
print(result)

# Output: 8

👉 return sends value back.

🔹 5. Default Parameters

def greet(name="Guest"):
print("Hello", name)
greet()
greet("Amit")


🔹 6. Why Functions Matter in Data Science?
Data cleaning functions
Feature engineering functions
Reusable ML pipelines
Code organization

🎯 Today’s Goal
Understand def
Use parameters
Use return
Call functions properly

Double Tap ♥️ For More
23👏1
𝗔𝗜 & 𝗗𝗮𝘁𝗮 𝗦𝗰𝗶𝗲𝗻𝗰𝗲 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗣𝗿𝗼𝗴𝗿𝗮𝗺 𝗕𝘆 𝗜𝗜𝗧 𝗥𝗼𝗼𝗿𝗸𝗲𝗲 😍

👉Learn from IIT faculty and industry experts
🔥100% Online | 6 Months
🎓Get Prestigious Certificate

 💫Companies are actively hiring candidates with Data Science & AI skills.

 Deadline: 8th March 2026

𝗥𝗲𝗴𝗶𝘀𝘁𝗲𝗿 𝗙𝗼𝗿 𝗦𝗰𝗵𝗼𝗹𝗮𝗿𝘀𝗵𝗶𝗽 𝗧𝗲𝘀𝘁 👇 :- 

https://pdlink.in/4kucM7E

Limited seats only
1
🔍 Machine Learning Cheat Sheet 🔍

1. Key Concepts:
- Supervised Learning: Learn from labeled data (e.g., classification, regression).
- Unsupervised Learning: Discover patterns in unlabeled data (e.g., clustering, dimensionality reduction).
- Reinforcement Learning: Learn by interacting with an environment to maximize reward.

2. Common Algorithms:
- Linear Regression: Predict continuous values.
- Logistic Regression: Binary classification.
- Decision Trees: Simple, interpretable model for classification and regression.
- Random Forests: Ensemble method for improved accuracy.
- Support Vector Machines: Effective for high-dimensional spaces.
- K-Nearest Neighbors: Instance-based learning for classification/regression.
- K-Means: Clustering algorithm.
- Principal Component Analysis(PCA)

3. Performance Metrics:
- Classification: Accuracy, Precision, Recall, F1-Score, ROC-AUC.
- Regression: Mean Absolute Error (MAE), Mean Squared Error (MSE), R^2 Score.

4. Data Preprocessing:
- Normalization: Scale features to a standard range.
- Standardization: Transform features to have zero mean and unit variance.
- Imputation: Handle missing data.
- Encoding: Convert categorical data into numerical format.

5. Model Evaluation:
- Cross-Validation: Ensure model generalization.
- Train-Test Split: Divide data to evaluate model performance.

6. Libraries:
- Python: Scikit-Learn, TensorFlow, Keras, PyTorch, Pandas, Numpy, Matplotlib.
- R: caret, randomForest, e1071, ggplot2.

7. Tips for Success:
- Feature Engineering: Enhance data quality and relevance.
- Hyperparameter Tuning: Optimize model parameters (Grid Search, Random Search).
- Model Interpretability: Use tools like SHAP and LIME.
- Continuous Learning: Stay updated with the latest research and trends.

🚀 Dive into Machine Learning and transform data into insights! 🚀

Best Data Science & Machine Learning Resources: https://topmate.io/coding/914624

All the best 👍👍
6
Conditional Statements (if–else) 🐍

Conditional statements allow programs to make decisions based on conditions.

👉 Used heavily in:
Data filtering
Business rules
Machine learning logic

🔹 1. if Statement
Used to execute code when a condition is True.

Syntax
if condition:
# code


Example
age = 20
if age >= 18:
print("You can vote")

# Output: You can vote

🔹 2. if–else Statement
Used when there are two possible outcomes.

Syntax
if condition:
# code if true
else:
# code if false


Example
age = 16
if age >= 18:
print("Eligible to vote")
else:
print("Not eligible")


🔹 3. if–elif–else Statement
Used when there are multiple conditions.

Syntax
if condition1:
# code
elif condition2:
# code
else:
# code


Example
marks = 75
if marks >= 90:
print("Grade A")
elif marks >= 60:
print("Grade B")
else:
print("Grade C")


🔹 4. Nested if Statement
An if statement inside another if.

age = 20
citizen = True
if age >= 18:
if citizen:
print("Eligible to vote")


🔹 5. Short if (Ternary Operator)
age = 20
print("Adult") if age >= 18 else print("Minor")


🎯 Today’s Goal
Understand if
Use if–else
Use elif for multiple conditions
Learn nested conditions

👉 Conditional logic is used in data filtering and decision models.

Double Tap ♥️ For More
13
🎯 2026 IT Certification Prep Kit – Free!

🔥Whether you're preparing for #Python, #AI, #Cisco, #PMI, #Fortinet, #AWS, #Azure, #Excel, #comptia, #ITIL, #cloud or any other in-demand certification – SPOTO has got you covered!

What’s Inside:
・Free Python, Excel, Cyber Security, Cisco, SQL, ITIL, PMP, AWS courses: https://bit.ly/4cZ9PKA
・IT Certs E-book: https://bit.ly/4aQfbqc
・IT Exams Skill Test: https://bit.ly/4aQf3He
・Free AI material and support tools:https://bit.ly/4ucJoHO
・Free Cloud Study Guide: https://bit.ly/3OExOVB


👉 Become Part of Our IT Learning Circle! resources and support:
https://chat.whatsapp.com/Cnc5M5353oSBo3savBl397

💬 Want exam help? Chat with an admin now!
https://wa.link/0pjvhh
2
𝗜𝗜𝗧 𝗥𝗼𝗼𝗿𝗸𝗲𝗲 𝗢𝗳𝗳𝗲𝗿𝗶𝗻𝗴 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗣𝗿𝗼𝗴𝗿𝗮𝗺 𝗶𝗻 𝗗𝗮𝘁𝗮 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀📊 𝘄𝗶𝘁𝗵 𝗔𝗜 𝗮𝗻𝗱 𝗚𝗲𝗻 𝗔𝗜 😍

Placement Assistance With 5000+ companies.

🔥 Companies are actively hiring candidates with Data Analytics skills.

🎓 Prestigious IIT certificate
🔥 Hands-on industry projects
📈 Career-ready skills for data & AI jobs

𝐑𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐍𝐨𝐰👇 :- 

https://pdlink.in/4rwqIAm

Limited seats available. Apply now to secure your spot
3
Which keyword is used to check a condition in Python?
Anonymous Quiz
7%
A) check
83%
B) if
6%
C) when
4%
D) condition
3
What will be the output?

x = 10 if x > 5: print("Yes") else: print("No")
Anonymous Quiz
89%
Yes
11%
No
2
Which keyword is used to check multiple conditions?
Anonymous Quiz
14%
A) elseif
62%
B) elif
21%
C) else if
3%
D) multiple
2
🔹 Q4. What will be the output?

x = 7 if x > 10: print("A") elif x > 5: print("B") else: print("C")
Anonymous Quiz
13%
A
79%
B
7%
C
1%
D
2
What will be the output?

age = 16 print("Adult") if age >= 18 else print("Minor")
Anonymous Quiz
28%
Adult
72%
Minor
5
🚀𝗚𝗲𝘁 𝗧𝗼𝗽 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻𝘀 𝗜𝗜𝗧's & 𝗜𝗜𝗠 

Dreaming of studying at an IIT and building a career in AI ? This is your chance

Prestigious IIT  Certification
Learn directly from IIT Professors
Placement Assistance with 5000+ Companies

💡 Today’s top companies are actively looking for professionals with AI skills. 

𝗥𝗲𝗴𝗶𝘀𝘁𝗲𝗿 𝗡𝗼𝘄 👇 :- 

𝗔𝗜 & 𝗗𝗮𝘁𝗮 𝗦𝗰𝗶𝗲𝗻𝗰𝗲 :- https://pdlink.in/4kucM7E

𝗔𝗜 & 𝗠𝗮𝗰𝗵𝗶𝗻𝗲 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 :- https://pdlink.in/4rMivIA

𝗗𝗮𝘁𝗮 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀 𝗪𝗶𝘁𝗵 𝗔𝗜 :- https://pdlink.in/4ay4wPG

Limited seats – Register before the link expires!
1
Now, let's move to the next topic of Data Science Roadmap:

Python Dictionaries 📚

Dictionaries are one of the most important data structures in Python, especially in data science and real-world datasets. They store data in key–value pairs.

🔹 1. What is a Dictionary?
A dictionary stores data in key:value format.

Example:

student = { "name": "Rahul", "age": 22, "course": "Data Science" }
print(student)


Output: {'name': 'Rahul', 'age': 22, 'course': 'Data Science'}

Uses curly brackets {}

🔹 2. Access Dictionary Values

Use the key to access values.

student = { "name": "Rahul", "age": 22 }
print(student["name"])


Output: Rahul

🔹 3. Add New Elements

student = { "name": "Rahul", "age": 22 }
student["city"] = "Delhi"
print(student)


Output: {'name': 'Rahul', 'age': 22, 'city': 'Delhi'}

🔹 4. Modify Values

student["age"] = 23


🔹 5. Remove Elements

student.pop("age")


🔹 6. Important Dictionary Methods


Get Method:
print(student.get("name"))


Output: Rahul

Keys Method:
print(student.keys())


Output: dict_keys(['name', 'age'])

Values Method:
print(student.values())


Output: dict_values(['Rahul', 22])

Items Method:
print(student.items())


Output: dict_items([('name', 'Rahul'), ('age', 22)])

🔹 7. Loop Through Dictionary

student = { "name": "Rahul", "age": 22 }

for key, value in student.items():
print(key, value)


Output:
name Rahul
age 22

🎯 Today’s Goal
Understand key–value pairs
Access dictionary values
Add or update data
Loop through dictionary

👉 Dictionaries are widely used in APIs, JSON data, and machine learning datasets.

Double Tap ♥️ For More
2