0% found this document useful (0 votes)
32 views

Introducing Python Libraries

Uploaded by

ramyashan
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Introducing Python Libraries

Uploaded by

ramyashan
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Introducing

Python Libraries
Collections of reusable code to simplify development.

Organized modules providing specific functionality.

Ms. Roshy Thomas


PGT, A.I. & CS
Loyola School,
What are Python Libraries?
Reusable Code
Pre-written modules for common tasks.

Organized
Grouped by subject like library books.

Importable
Added to programs with import statements.

Versatile
Libraries for many domains and purposes.
NumPy: Numerical Computing Powerhouse
N-dimensional Arrays Mathematical Operations Data Analysis

Efficient data structures for Fast array operations and Essential for scientific
numerical computations. mathematical functions. computing and data science.
Pandas: Data Manipulation
Made Easy

1 Series
One-dimensional labeled arrays for single columns.

2 DataFrames
Two-dimensional labeled data structures for tabular data.

3 Data Analysis
Powerful tools for cleaning and analyzing structured data.
Creating and Manipulating
DataFrames
Create
From lists, dictionaries, or external data sources.

Modify
Add or remove rows and columns easily.

Analyze
Filter, sort, and aggregate data efficiently.
Handling Missing Data
1 Identify
Use isnull() to find missing values.

2 Remove
Drop rows or columns with missing data.

3 Fill
Replace NaN values with specified data.

4 Analyze
Understand patterns in missing data.
Importing and Exporting
Data
Function Purpose

read_csv() Import data from CSV files

to_csv() Export DataFrame to CSV

read_excel() Import data from Excel files

You might also like