Name: Shuanak Nagvenkar REG NO: 21BCE0296 Course: Programming For Data Science Lab

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 23

NAME: SHUANAK NAGVENKAR

REG NO: 21BCE0296


COURSE: PROGRAMMING FOR
DATA SCIENCE LAB

DA 2
Aim:
Consider that you own a used-car shop and need to come up with a project to help you
determine which cars to buy for resale. The List data set includes the attributes: Vehicle Model,
Company, Number of KMs, mileage, Price and engine condition. The car is selected based on
few attributes: low rider, high mileage, and a good engine, as well as whether the automobile
was sold within 30 days. (Minimum 50 rows and data should not go beyond May 2023 from
current)
1. Perform the following operations on the dataset:

a. remove duplicates from a list and display the duplicated rows (Most matching rows are
duplicates).
b. find the list of cars that has high mileage than n from a given list of cars.
c. function that takes two lists and to find common items in two lists. (create subset and perform)
d. print a specified list after removing the specific brand cars.
e. shuffle and print the current list.
f. Get unique values from a list.

g. Get the frequency of models in a list. (number of times appear)

h. number of cars in a list within a specified range (number of KMs)


i. to split a list based on the budget of the car.
j. extract specified model of cars from a give list of brands.
2. Modify the cars price for a specific brand.
3. Create a new column sold date and add details.
4. Update the price with 10% if sold in recent 10 days
5. Remove the column engine condition.
6. Show list of lists and access those values using various methods as
demonstrated.

You might also like