NPTEL Python for Data Science Assignment 3 Answers 2023

Hello NPTEL Learners, In this article, you will find NPTEL Python for Data Science Assignment 3 Week 3 Answers 2023. All the Answers are provided below to help the students as a reference don’t straight away look for the solutions, first try to solve the questions by yourself. If you find any difficulty, then look for the solutions.

NPTEL Python for Data Science Assignment 4 Answers 2023 Join Group👇
NPTEL Principles of Management Assignment 1 Answers 2023

Note: We are trying to give our best so please share with your friends also.

NPTEL Python for Data Science Assignment 3 Answers 2023
NPTEL Python for Data Science Assignment 3 Answers 2023

NPTEL Python for Data Science 3 Answers 2023:

We are updating answers soon Join Group for update: CLICK HERE

Q.1. Which of the following is the correct approach to fill missing values in case of categorical variable?

  • Mean
  • Median
  • Mode
  • None of the above

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

NPTEL Python for Data Science Assignment 3 Answers 2023

Q.2. Of the following set of statements, which of them can be used to extract the column Type as a separate dataframe?

  • df cars[[’Type’]]
  • df cars.iloc[[:, 1]
  • df cars.loc[:, [’Type’]]
  • None of the above

Q.3. The method df_cars.describe() will give description of which of the following column?

  • Car name
  • Brand
  • Price (in lakhs)
  • All of the above
NPTEL Python for Data Science Assignment 4 Answers Join Group👇
NPTEL Python for Data Science Assignment 3 Answers 2023

Q.4. Which pandas function is used to stack the dataframes vertically?

  • pd.merge()
  • pd.concat()
  • join()
  • None of the above

Q.5. Which of the following are liabraries in Python?

  • Pandas
  • Matplotlib
  • NumPy
  • All of the above

Read the comma-separated values file  hotel bookings.csv  as a dataframe data hotel and answer questions 6 – 8. Please refer to Hotel Bookings  Data Description.pdf  for data and variable description.

Q.6. Choose the appropriate command(s) to filter those booking details whose reservation-status are a No-show?

  • Answer: B, D

Q.7. From the same data, find how many bookings were not canceled in the year 2017?

  • 9064
  • 6231
  • 9046
  • none of the above
NPTEL Python for Data Science Week 3 Answers Join Group👇
CLICK HERE

Q.8. From the total bookings that were made in 2017 and not canceled, which month had the highest number of repeated guests?

  • July
  • February
  • January
  • None of the above

Q.9. What will be the output of the following code?
NPTEL Python for Data Science Assignment 3 Answers 2023

  • [bool, int, float, float, str]
  • [str, int, float, float, str]
  • [bool, int, float, int, str]
  • [bool, int, int, float, str]

Q.10. Which command is used to generate the plot shown below?

  • plt.plot(x, linestyle = “-”)
  • plt.plot(x, linestyle = “–”)
  • plt.plot(x, linestyle = “-.”)
  • plt.plot(x, linestyle = “:”)
NPTEL Python for Data Science Assignment 4 Answers Join Group👇
NPTEL Python for Data Science Assignment 3 Answers 2023

Disclaimer: This answer is provided by us only for discussion purpose if any answer will be getting wrong don’t blame us. If any doubt or suggestions regarding any question kindly comment. The solution is provided by Chase2learn. This tutorial is only for Discussion and Learning purpose.

About NPTEL Python for Data Science Course:

The course aims at equipping participants to be able to use python programming for solving data science problems.

Course Outcome:
  • 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
  • •        Range
  • NumPy
  • •        ndArray
  • Week 3:
  • Pandas dataframe and dataframe related operations on Toyota Corolla dataset
  • Reading files
  • Exploratory data analysis
  • Data preparation and preprocessing
  • Data visualization on Toyoto Corolla dataset using matplotlib and seaborn libraries
  • Scatter plot
  • Line plot
  • Bar plot
  • Histogram
  • Box plot
  • Pair plot
  • Control structures using Toyota Corolla dataset
  • if-else family
  • for loop
  • for loop with if break
  • while loop
  • Functions
  • Week 4: CASE STUDY
  • Regression
  • Predicting price of pre-owned cars
  • Classification
  • Classifying personal income
CRITERIA TO GET A CERTIFICATE:

Average assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

If you have not registered for exam kindly register Through https://examform.nptel.ac.in/

Join Our Telegram Group:- CLICK HERE

Sharing Is Caring