ABOUT THE COURSE :
The course aims at equipping participants to be able to use python programming for solving data science problems.
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)
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
• Lists
• Arrays
• Tuples
• Dictionary
• Sets
• RangeNumPy
• ndArray
Week 3:
Pandas dataframe and dataframe related operations on Toyota Corolla dataset
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
NPTEL Python for Data Science Week 3 Assignment Answer
Week 3 : Assignment 3
Due date: 2025-02-12, 23:59 IST.
Assignment not submitted
Assume a pandas dataframe df_cars which when printed is as shown below. Based on this information, answer questions 2 and 3.
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: