0% found this document useful (0 votes)
8 views5 pages

Python For Data Science - Unit 6 - Week 3

The document outlines the Week 3 assignment for the 'Python for Data Science' course, detailing questions related to data handling using pandas. It includes information on submission deadlines, accepted answers, and various data manipulation techniques. The assignment covers topics such as filling missing values, extracting columns, and summarizing dataframes.

Uploaded by

rafi
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)
8 views5 pages

Python For Data Science - Unit 6 - Week 3

The document outlines the Week 3 assignment for the 'Python for Data Science' course, detailing questions related to data handling using pandas. It includes information on submission deadlines, accepted answers, and various data manipulation techniques. The assignment covers topics such as filling missing values, extracting columns, and summarizing dataframes.

Uploaded by

rafi
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
You are on page 1/ 5

9/18/25, 2:55 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)

If already
registered, click
to check your
Week 3 : Assignment 3
payment status The due date for submitting this assignment has passed.
Due on 2025-08-13, 23:59 IST.

Course Assignment submitted on 2025-08-04, 15:08 IST


outline
1) Which of the following is the correct approach to fill missing values in case of 1 point
categorical variable?
About
NPTEL () Mean
median
How does an
Mode
NPTEL
online None of the above
course Yes, the answer is correct.
work? () Score: 1
Accepted Answers:
Week 0 () Mode

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

Week 3 ()

Reading data
(unit?
unit=41&lesso
n=42)

Pandas
Dataframes I
(unit?

https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 1/5
9/18/25, 2:55 PM Python for Data Science - - Unit 6 - Week 3

unit=41&lesso
n=43)

Pandas
Dataframes II
(unit?
unit=41&lesso
n=44)

Pandas
Dataframes III
(unit?
unit=41&lesso
n=45)

Control
structures &
Functions 2) Of the following set of statements, which of them can be used to extract the column 1 point
(unit?
Type as a separate dataframe?
unit=41&lesso
n=46)
df_cars[[‘Type’]]
Exploratory df_cars.iloc[[:, 1]
data analysis
df_cars.loc[:, [‘Type’]]
(unit?
unit=41&lesso None of the above
n=47) Yes, the answer is correct.
Score: 1
Data
Accepted Answers:
Visualization-
df_cars[[‘Type’]]
Part I (unit?
unit=41&lesso
df_cars.loc[:, [‘Type’]]
n=48)
3) The method df_cars.describe() will give description of which of the following 1 point
Data
column?
Visualization-
Part II (unit?
Car name
unit=41&lesso
n=49)
Brand
Price (in lakhs)
Dealing with
missing data All of the above
(unit? Yes, the answer is correct.
unit=41&lesso Score: 1
n=50) Accepted Answers:
Price (in lakhs)
Datasets
(unit?
unit=41&lesso 4) Which pandas function is used to stack the dataframes vertically? 1 point
n=51)
pd.merge()
Week 3:
pd.concat()
Lecture slides
(unit? join()
unit=41&lesso None of the above
n=52)
Yes, the answer is correct.
Week 3 - Score: 1
FAQs (unit? Accepted Answers:
pd.concat()

https://onlinecourses.nptel.ac.in/noc25_cs104/unit?unit=41&assessment=169 2/5
9/18/25, 2:55 PM Python for Data Science - - Unit 6 - Week 3

unit=41&lesso 5) Which of the following are libraries in Python? 1 point


n=53)
Pandas
Week 3
Feedback Matplotlib
Form : Python NumPy
for Data
All of the above
Science!!
(unit? Yes, the answer is correct.
unit=41&lesso Score: 1
n=115) Accepted Answers:
All of the above
Quiz: Week 3
: Assignment
3 Read the ‘flavors_of_cocoa.csv
(assessment? (https://drive.google.com/file/d/1Oeq1sG3k72OXABY2e89HYJQr7QFcY-Ke/view?
name=169) usp=drive_link)’ file as a dataframe ‘df_cocoa’ and answer questions 6-9. The description of
Practice: features/variables is given below:
Week 3:
Practice
Assignment 3
(assessment?
name=170)

Week 4 ()

Supporting
material for
Week 4 ()

Download 6) Which of the following variable have null values? 1 point


Videos ()
ID

Problem Company
Solving Review Date
Session - Rating
July 2025 ()
Yes, the answer is correct.
Score: 1
Accepted Answers:
Review Date

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
9/18/25, 2:55 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
9/18/25, 2:55 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

You might also like