Modules,Packages,Librarfrserrrrrrrrrrrries.pptx

CatherineBenban2 5 views 5 slides Jul 27, 2024
Slide 1
Slide 1 of 5
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5

About This Presentation

hh


Slide Content

Module A module is a python file or files that are imported. It can contain functions, classes, and variables. It can also include runnable code. def func1(): ------- import StringOperations MainProgram.py StringOperations.py

Package A package typically contains an __init__.py file and one or more module files. The __init__.py file can be empty, but it must be present in the directory for Python to recognize it as a package. MathOperations.py StringOperations.py __init__.py from MyPackage import StringOperations from MyPackage import MathOperations MainProgram.py MyPackage

Library is a collection of modules and packages that provide reusable code for various tasks. Libraries can be extensive and include many modules and packages, offering a wide range of functionalities. MathOperations.py StringOperations.py __init__.py from MyPackage import StringOperations from MyPackage import MathOperations MainProgram.py MyPackage MyLibrary setup.py __init__.py

Pandas - A python library used to analyze data - Pandas means “ Panel Data” and “Python Data Analysis” and was created by Wes McKinney in 2008. Data Science Clean Data Analyze Data Correlations

NumPy - A python library used for working with arrays, linear algebra, fourier transform and matrices - NumPy means “ Numerical” “Python” and was created by Travis Oliphant in 2005. NumPy arrays are stored at one continuous place in memory unlike lists NumPy is faster than Python Collections List NumPy is optimized to work with latest CPU architectures.
Tags