AIML Assignment_merged
AIML Assignment_merged
1. Use pandas to create a student mark-sheet with Student ID, Name, and
marks obtained in 6 subjects
2. Use pandas to get the name and ID of the student with the highest
percentage of marks.
3. Use pandas to identify the student who got lowest marks in more than 2
subjects.
4. Save the dataFrame as a csv file called marksheet.csv.
5. How to iterate over rows in Pandas Dataframe.
6. Different ways to iterate over rows in Pandas Dataframe.
7. Selecting rows in pandas DataFrame based on conditions.
8. Select any row from a Dataframe using iloc[] and iat[] in Pandas.
9. Limited rows selection with given column in Pandas.
10. Drop rows from the dataframe based on certain condition applied on a
column.
11. Insert row at given position in Pandas Dataframe.
12. Create a pandas column using for loop.
13. How to get column names in Pandas dataframe.
14. How to rename columns in Pandas DataFrame.
15. Collapse multiple Columns in Pandas.
16. Get unique values from a column in Pandas DataFrame.
17. Conditional operation on Pandas DataFrame columns.
18. Create a Pandas Series from array.
19. Creating a Pandas Series from Dictionary.
20. Creating a Pandas Series from Lists.
21. Create Pandas Series using NumPy functions.
22. Access the elements of a Series in Pandas.
Week-3 (Introduction to Matplotlib)
Assignment-4
4. Using the RMSE and R2 score lists from Q2 and Q3, plot the values in
two separate line plots with the help of matplotlib. The first plot should
illustrate the RMSE scores achieved using Ridge and Lasso regression for
given set of α values, and the second plot should illustrate the R2 scores
for the same.
2. Repeat the experiment as given in Q1, using split ratios of 60:40 and
80:20. Record the R2 scores in separate lists.
3. Plot the R2 scores from the 3 lists obtained from Q1 and Q2 and
illustrate how the R2 scores vary for different split ratios and different
max_iter values.
Assignment-6
2. Repeat the experiment as given in Q1, using split ratios of 60:40 and
80:20. Record the Mean Squared Error, Root Mean Squared Error, and R2
scores in separate lists for each case.
4. Plot the Mean Squared Error, Root Mean Squared Error, and R2 scores
in separate plots using matplotlib module. For each plot, use the calculated
scores for the 3 different splits of train and test data. Do this for both the
DecisionTreeRegressor and RandomForestRegressor models.
Assignment-7
2. Repeat the experiment as given in Q1, using split ratios of 60:40 and
80:20.
3. Repeat the above set of experiments for the RandomForestClassifier
from sklearn.ensemble.
Assignment-8
2. Repeat the experiment as given in Q1, using split ratios of 60:40 and
80:20.
Assignment-9
2. Repeat the experiment as given in Q1, using split ratios of 60:40 and
80:20.