8/23/25, 3:49 PM Python for Data Science - - Unit 6 - Week 3
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
[email protected]
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Python for Data Science (course)
Click to register
for Certification
exam
Week 3 : Assignment 3
(https://examform.nptel.ac.in/2025_10/exam_form/dashboard)
The due date for submitting this assignment has passed.
If already
Due on 2025-08-13, 23:59 IST.
registered, click
to check your Assignment submitted on 2025-08-12, 22:49 IST
payment status
1) Which of the following is the correct approach to fill missing values in case of 1 point
categorical variable?
Mean
Course
outline median
Mode
About None of the above
NPTEL () Yes, the answer is correct.
Score: 1
How does an Accepted Answers:
NPTEL Mode
online
course
work? () Assume a pandas dataframe df_cars which when printed is as shown below. Based on this
information, answer questions 2 and 3.
Week 0 ()
Week 1 ()
Week 2 ()
Week 3 ()
Reading data
(unit?
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 1/5
8/23/25, 3:49 PM Python for Data Science - - Unit 6 - Week 3
unit=41&lesso
n=42)
Pandas
Dataframes I
(unit?
unit=41&lesso
n=43)
Pandas
Dataframes II
(unit?
unit=41&lesso
n=44)
Pandas
Dataframes III
(unit? 2) Of the following set of statements, which of them can be used to extract the column 1 point
unit=41&lesso
Type as a separate dataframe?
n=45)
Control
df_cars[[‘Type’]]
structures & df_cars.iloc[[:, 1]
Functions
df_cars.loc[:, [‘Type’]]
(unit?
unit=41&lesso
None of the above
n=46) Yes, the answer is correct.
Score: 1
Exploratory
Accepted Answers:
data analysis
df_cars[[‘Type’]]
(unit?
df_cars.loc[:, [‘Type’]]
unit=41&lesso
n=47)
3) The method df_cars.describe() will give description of which of the following 1 point
Data
column?
Visualization-
Part I (unit? Car name
unit=41&lesso
Brand
n=48)
Price (in lakhs)
Data
Visualization-
All of the above
Part II (unit? Yes, the answer is correct.
unit=41&lesso Score: 1
n=49) Accepted Answers:
Price (in lakhs)
Dealing with
missing data
(unit? 4) Which pandas function is used to stack the dataframes vertically? 1 point
unit=41&lesso
n=50)
pd.merge()
pd.concat()
Datasets
(unit? join()
unit=41&lesso None of the above
n=51)
Yes, the answer is correct.
Week 3: Score: 1
Lecture slides Accepted Answers:
(unit? pd.concat()
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 2/5
8/23/25, 3:49 PM Python for Data Science - - Unit 6 - Week 3
unit=41&lesso 5) Which of the following are libraries in Python? 1 point
n=52)
Pandas
Week 3 - FAQs
(unit?
Matplotlib
unit=41&lesso NumPy
n=53)
All of the above
Week 3 Yes, the answer is correct.
Feedback Score: 1
Form : Python Accepted Answers:
for Data All of the above
Science!!
(unit?
unit=41&lesso Read the ‘flavors_of_cocoa.csv
n=115) (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
Quiz: Week 3
: Assignment
features/variables is given below:
3
(assessment?
name=169)
Practice:
Week 3:
Practice
Assignment 3
(assessment?
name=170)
Week 4 ()
6) Which of the following variable have null values? 1 point
Supporting
material for ID
Week 4 ()
Company
Download Review Date
Videos () Rating
Yes, the answer is correct.
Problem Score: 1
Solving Accepted Answers:
Session - Review Date
July 2025 ()
7) Which of the following countries have maximum locations of cocoa manufacturing 1 point
companies?
U.K.
U.S.A.
Canada
France
Yes, the answer is correct.
Score: 1
Accepted Answers:
U.S.A.
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 3/5
8/23/25, 3:49 PM Python for Data Science - - Unit 6 - Week 3
8) After checking the data summary, which feature requires a data conversion 1 point
considering the data values held?
Rating
Review date
Company
Bean origin
Yes, the answer is correct.
Score: 1
Accepted Answers:
Review date
9) What is the maximum rating of chocolates? 1 point
1.00
5.00
3.18
4.00
Yes, the answer is correct.
Score: 1
Accepted Answers:
5.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]
Yes, the answer is correct.
Score: 1
Accepted Answers:
[bool, int, float, 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
Yes, the answer is correct.
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 4/5
8/23/25, 3:49 PM Python for Data Science - - Unit 6 - Week 3
Score: 1
Accepted Answers:
Summary of the DataFrame, including the number of non-null entries.
12) What will be the output of the following code? 1 point
[1, 2]
[1, 3, 5]
[1, 2, 3, 4, 5]
[5, 4, 3, 2, 1]
Yes, the answer is correct.
Score: 1
Accepted Answers:
[1, 3, 5]
https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 5/5