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

Lab Assignment 1

This document outlines lab assignment objectives for exploring data analysis using NumPy and Pandas on student-created data. The assignment involves performing operations like addition, subtraction, and multiplication on matrices; extracting, transforming, and analyzing data from a sample vehicle data frame; and preprocessing, cleaning, and saving the data to an external CSV file for submission. Students are instructed to complete the assignment in a Jupyter notebook and submit their work along with the dataset and PDF of the notebook in a single zip folder through the learning management system.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

Lab Assignment 1

This document outlines lab assignment objectives for exploring data analysis using NumPy and Pandas on student-created data. The assignment involves performing operations like addition, subtraction, and multiplication on matrices; extracting, transforming, and analyzing data from a sample vehicle data frame; and preprocessing, cleaning, and saving the data to an external CSV file for submission. Students are instructed to complete the assignment in a Jupyter notebook and submit their work along with the dataset and PDF of the notebook in a single zip folder through the learning management system.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

School of Computer Science Engineering and Technology

Course- MCA/MTECH Type- Elective


Course Code- CMCA550/CSET550 Course Name – IMDT using AI
Year- 2023 Semester- Even
Date- 13-01-2024 Batch- NA

Lab Assignment 1
Objective: Exploratory Data Analysis using NumPy and Pandas

Part 1: Perform the following operation on user created data using NumPy Lib

1. Create the following Matrix and Perform the following operations on mat1 and mat2 using NumPy
Lib

• Addition of two matrix


• Subtraction of two matrix
• Multiplication of two matrix
• Dot product
• Find the diagonal element
• Find the Min and Max element from the Mat1
• Find the product and sum of the element of the mat1 and mat2
• Find the mean, median

Part 2: Perform the following operation on user created data using Pandas Lib

2. Perform following operations on data frame using Pandas Lib (i.e., named as a “Vehical_Data")
(40)

Hero TVS Honda


Madhavi 1 11 26.6
Pranav 5 13.4 50
Bhagya 6.6 18 80
Param 8 9 2
Gauri 6 16 1
Anand 13 13 0

• Print first 10 rows of the data frame


• Print last 10 rows of the data frame
• Check the shape of a data frame
• Display the complete information of the data frame
• Perform Transform operation on a data frame
• Find the columns of a data frame
• Find the index of a data frame
• Calculate the mean median for certain Columns
School of Computer Science Engineering and Technology
• Extract the data of Apple column into variable X (Using Index, Label and Location) and
convert it into NumPy array
3. Perform operations like row/ column removal from the above-created data frame. (5)
4. Handle the presence of duplicate data. (5)
5. Check the presence of missing value
6. Store the pre-processed data in an external file named "My_Data.csv" (5)

Platform Required: Anaconda, Editor: Jupyter/Spyder/Pycharm/Google Colab

Submission Instructions:

• Submission required 3 things 1) Python file (roll_no.ipynb/.py) 2) Dataset 3) PDF of .ipynb file. All
these files are in single zip folder (Use the naming convention: RollNo_LabNo.docx (Example:
123_Lab1))
• Submission is through LMS only.

You might also like