You are on page 1of 3

Experiment 1:

Numpy library with associated functions

Learning Objective: Students should be able to initialize numpy arrays and apply associated
functions on numpy arrays
Tools: Python (Colab Notebook)
Theory:
Numpy is a fundamental library in Python for numerical computing, providing support for large,
multi-dimensional arrays and matrices, along with an extensive collection of mathematical
functions to operate on these arrays efficiently. This experiment aims to familiarize students with
the basics of Numpy, enabling them to initialize arrays and apply associated functions for various
data manipulations and computations.

1. Initializing Numpy Arrays: Numpy arrays are homogeneous data structures, allowing
students to create arrays with different dimensions. The 'np.array()' function enables the
creation of arrays from Python lists or tuples, while 'np.zeros()', 'np.ones()', and
'np.arange()' facilitate generating arrays with zeros, ones, or a range of values,
respectively.
2. Associated Functions: Numpy offers an array of powerful functions for data analysis
and computations. Students will learn to reshape arrays using 'reshape()', transpose arrays
with 'transpose()', and reverse arrays using slicing. Moreover, they will perform
element-wise operations with functions like 'add()', 'subtract()', 'multiply()', and 'divide()',
and compute the dot product with 'dot()'.

By the end of this experiment, students will gain a comprehensive understanding of Numpy's
capabilities in handling large datasets efficiently and performing complex mathematical
operations. They will be able to apply Numpy arrays and functions to various problem-solving
scenarios, enabling them to harness the full potential of Numpy for numerical computing in their
future projects and data analysis tasks. The experiment will empower students with the essential
skills to manipulate, analyze, and process data effectively using Numpy, enhancing their overall
proficiency in Python programming and data science.
Result and discussion:

…………………………………………………………………………………………………….

…………………………………………………………………………………………………….

…………………………………………………………………………………………………….

Learning Outcomes:

LO1: Understand the fundamental concepts of Numpy library and its associated functions for numerical
computing and data manipulation.
LO2: Apply Numpy arrays and functions to create, reshape, and perform mathematical operations on
arrays, effectively utilizing them in various data analysis tasks.

Course Outcomes:

CO1: Study Numpy with associated functions

Conclusion:

…………………………………………………………………………………………………….

…………………………………………………………………………………………………….

…………………………………………………………………………………………………….

For Faculty Use

Correction Formative Timely Attendance /


Parameters Assessmen completion of Learning
t [40%] Practical [ Attitude
40%] [20%]

Marks
Obtained

You might also like