NPTEL Python for Data Science Week 3 Assignment Answer

ABOUT THE COURSE :
The course aims at equipping participants to be able to use python programming for solving data science problems.
INTENDED AUDIENCE : Final Year Undergraduates

PRE-REQUISITES
: Knowledge of basic data science algorithms

NPTEL Python for Data Science Week 3 Assignment Answer

Course layout

Week 1:
BASICS OF PYTHON SPYDER (TOOL)

• Introduction Spyder
• Setting working Directory
• Creating and saving a script file
• File execution, clearing console, removing variables from environment, clearing environment
• Commenting script files
• Variable creation
• Arithmetic and logical operators
• Data types and associated operations

Week 2:

Sequence data types and associated operations
•        Strings
•        Lists
•        Arrays
•        Tuples
•        Dictionary
•        Sets
•        RangeNumPy
•        ndArray
Week 3:
Pandas dataframe and dataframe related operations on Toyota Corolla dataset
  1. Reading files
  2. Exploratory data analysis
  3. Data preparation and preprocessing
Data visualization on Toyoto Corolla dataset using matplotlib and seaborn libraries
  1. Scatter plot
  2. Line plot
  3. Bar plot
  4. Histogram
  5. Box plot
  6. Pair plot
Control structures using Toyota Corolla dataset
  1. if-else family
  2. for loop
  3. for loop with if break
  4. while loop
  5. Functions
Week 4: CASE STUDY
Regression
  1. Predicting price of pre-owned cars
Classification
  1. Classifying personal income

NPTEL Python for Data Science Week 3 Assignment Answer

Week 3 : Assignment 3

Due date: 2025-02-12, 23:59 IST.
Assignment not submitted
1 point
Which of the following is the correct approach to fill missing values in case of categorical variable?
 
 
 
 

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

1 point
Of the following set of statements, which of them can be used to extract the column Type as a separate dataframe?
 
 
 
 
1 point
The method df_cars.describe() will give description of which of the following column?
 
 
 
 
1 point
Which pandas function is used to stack the dataframes vertically?
 
 
 
 
1 point
Which of the following are libraries in Python?
 
 
 
 
Read the ‘flavors_of_cocoa.csv’ file as a dataframe ‘df_cocoa’ and answer questions 6-9. The description of features/variables is given below:
1 point
Which of the following variable have null values?
 
 
 
 
1 point
Which of the following countries have maximum locations of cocoa manufacturing companies?
 
 
 
 
1 point
After checking the data summary, which feature requires a data conversion considering the data values held?
 
 
 
 
1 point
What is the maximum rating of chocolates?
 
 
 
 
1 point
What will be the output of the following code?
 
 
 
 
1 point
What does df.info() provide?
 
 
 
 
1 point
What will be the output of the following code?
 
 
 
 

Related Posts