Practical 1
Practical 1
Python libraries are collections of pre-written code that developers can use to perform
common tasks, making it easier to develop applications and avoid writing repetitive code. They
provide modules and functions that can be imported into a Python script to extend its functionality
without having to write the code from scratch.
1. NumPy
Provides support for large, multi-dimensional arrays and matrices, along with mathematical
functions to operate on these arrays.
2. Pandas
Offers data structures and operations for manipulating numerical tables and time series.
3. Matplotlib
A plotting library used for creating static, animated, and interactive visualizations in Python.
4. Seaborn
A statistical data visualization library based on Matplotlib, designed to make plots more
attractive and informative.
5. Plotly
6. SciPy
Builds on NumPy and provides additional functionality for scientific and technical
computing.
7. Scikit-learn
A machine learning library that offers simple and efficient tools for data mining and data
analysis.
8. TensorFlow
An open-source platform for machine learning, especially useful for neural networks.
9. Keras
A high-level neural networks API, written in Python and capable of running on top of
TensorFlow.
22SS02IT080 SSCA3021 Data Science
10. PyTorch
An open-source machine learning library based on the Torch library, used for applications
such as natural language processing.
11. Statsmodels
Provides classes and functions for the estimation of many different statistical models.
A library for natural language processing (NLP) with a suite of text processing libraries.
13. SpaCy
14. XGBoost
15. LightGBM
16. CatBoost
17. Scrapy
A library for parsing HTML and XML documents and extracting data from them.
19. OpenCV
Explanation :
1. Pandas
Description: Pandas is a powerful data manipulation and analysis library that provides data
structures like DataFrames, which are useful for handling structured data.
Example:
2. NumPy
Example:
3. Matplotlib
Description: Matplotlib is a plotting library used for creating static, animated, and interactive
visualizations in Python.
Example:
4. Seaborn
Description: Seaborn is built on top of Matplotlib and provides a high-level interface for
drawing attractive and informative statistical graphics.
Example:
22SS02IT080 SSCA3021 Data Science
5. Plotly
Example:
22SS02IT080 SSCA3021 Data Science
6. SciPy
Description: Builds on NumPy and provides additional functionality for scientific and
technical computing. Commonly Used Functions:
7. Scikit-learn
Description: A machine learning library that offers simple and efficient tools for data mining
and data analysis. Commonly Used Functions:
8. TensorFlow
Description: An open-source platform for machine learning, especially useful for neural
networks. Commonly Used Functions:
9. Keras
Description: A high-level neural networks API, written in Python and capable of running on
top of TensorFlow. Commonly Used Functions:
10. PyTorch
Description: An open-source machine learning library based on the Torch library, used for
applications such as natural language processing. Commonly Used Functions: