0% found this document useful (0 votes)
12 views2 pages

UNIT I Python Data Science Notes

The document provides an overview of Python and its application in Data Science, emphasizing the importance of data collection, cleaning, and analysis. It highlights Python's features, essential libraries, and fundamental programming concepts such as data types, decision making, and user-defined functions. Examples are provided to illustrate key programming techniques in Python.

Uploaded by

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

UNIT I Python Data Science Notes

The document provides an overview of Python and its application in Data Science, emphasizing the importance of data collection, cleaning, and analysis. It highlights Python's features, essential libraries, and fundamental programming concepts such as data types, decision making, and user-defined functions. Examples are provided to illustrate key programming techniques in Python.

Uploaded by

SHRAWAN SHARMA
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like