05/08/2025, 16:16 Python for Data Science - - Unit 6 - Week 3
Assessment submitted.
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
X
[email protected]
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Python for Data Science (course)
Click to register
for Certification
exam
Thank you for taking the Week 3 :
Assignment 3.
(https://examform.nptel.ac.in/2025_10/exam_form/dashboard)
If already
registered, click
to check your
Week 3 : Assignment 3
payment status Your last recorded submission was on 2025-08-05, 16:16 Due date: 2025-08-13, 23:59 IST.
IST
1) Which of the following is the correct approach to fill missing values in case of 1 point
Course categorical variable?
outline
Mean
About median
NPTEL () Mode
None of the above
How does an
NPTEL
online Assume a pandas dataframe df_cars which when printed is as shown below. Based on this
course information, answer questions 2 and 3.
work? ()
Week 1 ()
Week 2 ()
Week 3 ()
Reading data
(unit?
unit=41&lesso
n=42)
Pandas
Dataframes I
(unit?
unit=41&lesso 2) Of the following set of statements, which of them can be used to extract the column 1 point
n=43) Type as a separate dataframe?
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 1/4
05/08/2025, 16:16 Python for Data Science - - Unit 6 - Week 3
Pandas df_cars[[‘Type’]]
Assessment submitted.
Dataframes II
X df_cars.iloc[[:, 1]
(unit?
unit=41&lesso df_cars.loc[:, [‘Type’]]
n=44) None of the above
Pandas 3) The method df_cars.describe() will give description of which of the following 1 point
Dataframes III column?
(unit?
unit=41&lesso Car name
n=45)
Brand
Control Price (in lakhs)
structures &
All of the above
Functions
(unit?
unit=41&lesso 4) Which pandas function is used to stack the dataframes vertically? 1 point
n=46)
pd.merge()
Exploratory
pd.concat()
data analysis
(unit? join()
unit=41&lesso None of the above
n=47)
Data 5) Which of the following are libraries in Python? 1 point
Visualization-
Part I (unit? Pandas
unit=41&lesso Matplotlib
n=48)
NumPy
Data All of the above
Visualization-
Part II (unit?
unit=41&lesso Read the ‘flavors_of_cocoa.csv
n=49) (https://drive.google.com/file/d/1Oeq1sG3k72OXABY2e89HYJQr7QFcY-Ke/view?
usp=drive_link)’ file as a dataframe ‘df_cocoa’ and answer questions 6-9. The description of
Dealing with
missing data
features/variables is given below:
(unit?
unit=41&lesso
n=50)
Datasets
(unit?
unit=41&lesso
n=51)
Week 3:
Lecture slides
(unit?
unit=41&lesso
n=52) 6) Which of the following variable have null values? 1 point
Week 3 - ID
FAQs (unit?
Company
unit=41&lesso
n=53) Review Date
Rating
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 2/4
05/08/2025, 16:16 Python for Data Science - - Unit 6 - Week 3
Quiz: Week 3 7) Which of the following countries have maximum locations of cocoa manufacturing 1 point
Assessment submitted. companies?
: Assignment
X 3
(assessment? U.K.
name=169) U.S.A.
Practice: Canada
Week 3: France
Practice
Assignment 3
8) After checking the data summary, which feature requires a data conversion 1 point
(assessment?
considering the data values held?
name=170)
Rating
Problem
Solving Review date
Session - Company
July 2025 ()
Bean origin
9) What is the maximum rating of chocolates? 1 point
1.00
5.00
3.18
4.00
10) What will be the output of the following code? 1 point
[bool, int, float, float, str]
[str, int, float, float, str]
[bool, int, float, int, str]
[bool, int, int, float, str]
11) What does df.info() provide? 1 point
Summary of the DataFrame, including the number of non-null entries.
The first 5 rows of the DataFrame
The data types of the columns
The correlation matrix of the DataFrame
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 3/4
05/08/2025, 16:16 Python for Data Science - - Unit 6 - Week 3
12) What will be the output of the following code? 1 point
Assessment submitted.
X
[1, 2]
[1, 3, 5]
[1, 2, 3, 4, 5]
[5, 4, 3, 2, 1]
You may submit any number of times before the due date. The final submission will be
considered for grading.
Submit Answers
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 4/4