0% found this document useful (0 votes)
18 views4 pages

Week 3: Assignment 3: (Https://swayam - Gov.in)

The document outlines the details for Week 3 of the 'Python for Data Science' course, including assignment questions related to data manipulation using pandas. It covers topics such as handling missing values, extracting data from dataframes, and understanding various pandas functions. The assignment is due on August 13, 2025, and students can submit answers multiple times before the deadline.
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)
18 views4 pages

Week 3: Assignment 3: (Https://swayam - Gov.in)

The document outlines the details for Week 3 of the 'Python for Data Science' course, including assignment questions related to data manipulation using pandas. It covers topics such as handling missing values, extracting data from dataframes, and understanding various pandas functions. The assignment is due on August 13, 2025, and students can submit answers multiple times before the deadline.
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

13/08/2025, 08:59 Python for Data Science - - Unit 6 - Week 3

([Link] ([Link]

deveshreddypusalapati@[Link] 

NPTEL ([Link] » Python for Data Science (course)


Click to register
for Certification
exam
Week 3 : Assignment 3
([Link]
Your last recorded submission was on 2025-08-05, 16:22 Due date: 2025-08-13, 23:59 IST.
IST
If already
registered, click 1) Which of the following is the correct approach to fill missing values in case of 1 point
to check your categorical variable?
payment status
Mean
median
Mode
Course
None of the above
outline

About Assume a pandas dataframe df_cars which when printed is as shown below. Based on this
NPTEL () information, answer questions 2 and 3.

How does an
NPTEL
online
course
work? ()

Week 1 ()

Week 2 ()

Week 3 ()

Reading data
(unit?
unit=41&lesso 2) Of the following set of statements, which of them can be used to extract the column 1 point
n=42) Type as a separate dataframe?

df_cars[[‘Type’]]

[Link] 1/4
13/08/2025, 08:59 Python for Data Science - - Unit 6 - Week 3

Pandas df_cars.iloc[[:, 1]
Dataframes I
df_cars.loc[:, [‘Type’]]
(unit?
unit=41&lesso None of the above
n=43)
3) The method df_cars.describe() will give description of which of the following 1 point
Pandas column?
Dataframes II
(unit? Car name
unit=41&lesso Brand
n=44)
Price (in lakhs)
Pandas All of the above
Dataframes III
(unit?
4) Which pandas function is used to stack the dataframes vertically? 1 point
unit=41&lesso
n=45)
[Link]()
Control [Link]()
structures &
join()
Functions
(unit? None of the above
unit=41&lesso
n=46) 5) Which of the following are libraries in Python? 1 point

Exploratory
Pandas
data analysis
(unit? Matplotlib
unit=41&lesso NumPy
n=47)
All of the above
Data
Visualization-
Read the ‘flavors_of_cocoa.csv
Part I (unit?
unit=41&lesso ([Link]
n=48) usp=drive_link)’ file as a dataframe ‘df_cocoa’ and answer questions 6-9. The description of
features/variables is given below:
Data
Visualization-
Part II (unit?
unit=41&lesso
n=49)

Dealing with
missing data
(unit?
unit=41&lesso
n=50)

Datasets
(unit?
unit=41&lesso
6) Which of the following variable have null values? 1 point
n=51)
ID
Week 3: Company
Lecture slides
Review Date
(unit?
unit=41&lesso Rating
n=52)

[Link] 2/4
13/08/2025, 08:59 Python for Data Science - - Unit 6 - Week 3

Week 3 - 7) Which of the following countries have maximum locations of cocoa manufacturing 1 point
FAQs (unit? companies?
unit=41&lesso
n=53) U.K.
U.S.A.
Week 3
Feedback Canada
Form : Python France
for Data
Science!!
8) After checking the data summary, which feature requires a data conversion 1 point
(unit?
considering the data values held?
unit=41&lesso
n=115)
Rating
Quiz: Week 3 Review date
: Assignment
Company
3
(assessment? Bean origin
name=169)
9) What is the maximum rating of chocolates? 1 point
Practice:
Week 3:
1.00
Practice
Assignment 3 5.00
(assessment? 3.18
name=170)
4.00
Week 4 ()
10) What will be the output of the following code? 1 point
Supporting
material for
Week 4 ()

Download
Videos ()

Problem
Solving [bool, int, float, float, str]
Session - [str, int, float, float, str]
July 2025 () [bool, int, float, int, str]
[bool, int, int, float, str]

11) What does [Link]() 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

[Link] 3/4
13/08/2025, 08:59 Python for Data Science - - Unit 6 - Week 3

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]

You may submit any number of times before the due date. The final submission will be
considered for grading.
Submit Answers

[Link] 4/4

You might also like