Python for Data Science - - Unit 6 - Week 3
Python for Data Science - - Unit 6 - Week 3
Assessment submitted.
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
X
meenakshi.eee@sairam.edu.in
Click to register
for Certification
exam
Thank you for taking the Week 3:
Assignment 3.
(https://examform.nptel.ac.in/2024_01/exam_form/dashboard)
If already
registered, click
to check your
Week 3: Assignment 3
payment status Your last recorded submission was on 2024-02-14, 09:55 Due date: 2024-02-14, 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
Week 0 ()
Week 1 ()
Week 2 ()
Week 3 ()
Reading data
(unit?
unit=41&lesso
n=42) 2) Of the following set of statements, which of them can be used to extract the column 1 point
Type as a separate dataframe?
Pandas
Dataframes I df_cars[[‘Type’]]
(unit?
df_cars.iloc[[:, 1]
https://onlinecourses.nptel.ac.in/noc24_cs54/unit?unit=41&assessment=137 1/3
2/14/24, 9:55 AM Python for Data Science - - Unit 6 - Week 3
unit=41&lesso df_cars.loc[:,[‘Type’]]
Assessment
n=43)submitted.
X None of the above
Pandas
Dataframes II 3) The method df_cars.describe() will give description of which of the following column? 1 point
(unit?
unit=41&lesso
Car name
n=44) Brand
Pandas
Price (in lakhs)
Dataframes III All of the above
(unit?
unit=41&lesso 4) Which pandas function is used to stack the dataframes vertically? 1 point
n=45)
pd.merge()
Control
structures & pd.concat()
Functions join()
(unit?
unit=41&lesso
None of the above
n=46)
5) Which of the following are libraries in Python? 1 point
Exploratory
data analysis Pandas
(unit?
Matplotlib
unit=41&lesso
n=47) NumPy
All of the above
Data
Visualization-
Part I (unit?
Read the ‘flavors_of_cocoa.csv
unit=41&lesso
(https://drive.google.com/file/d/1EB0OnTXy1R4JTz6HFXVLeX4Kzk8XBnNs/view)’ file as a
n=48)
dataframe ‘df_cocoa’ and answer questions 6-9.
Data The description of features/variables is given below:
Visualization-
Part II (unit?
unit=41&lesso
n=49)
Dealing with
missing data
(unit?
unit=41&lesso
n=50)
Datasets (unit?
unit=41&lesso
n=51) 6) Which of the following variable have null values? 1 point
Week 3: ID
Lecture slides
Company
(unit?
unit=41&lesso Review Date
n=52) Rating
Week 3 - FAQs
(unit? 7) Which of the following countries have maximum locations of cocoa manufacturing 1 point
unit=41&lesso companies?
n=53)
U.K.
https://onlinecourses.nptel.ac.in/noc24_cs54/unit?unit=41&assessment=137 2/3
2/14/24, 9:55 AM Python for Data Science - - Unit 6 - Week 3
Week 3 Company
Feedback Bean origin
Form : Python
For Data
9) What is the maximum rating of chocolates? 1 point
Science (unit?
unit=41&lesso
1.00
n=115)
5.00
Week 4 () 3.18
4.00
Supporting
material for
10) What will be the output of the following code? 1 point
Week 4 ()
Download
Videos ()
Books ()
Text
Transcripts () [bool, int, float, float, str]
[str, int, float, float, str]
[bool, int, float, int, str]
[bool, int, int, float, str]
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/noc24_cs54/unit?unit=41&assessment=137 3/3