Prac File Sol GR XII - 2
Prac File Sol GR XII - 2
Program 7
Write a program to analyse the performance of the students on the basis of subject. Add title, legend, label on
both axis of the chart.
Solution:
# import pandas and matplotlib
import pandas as pd
import matplotlib.pyplot as plt
plt.plot(subject,marks,'r',marker ='*')
# To Write Title of the Line Chart
plt.title('Marks Scored')
output :
_______________________________________________________________________________________________
Date : 16/8/2024
Program 8
Write a program to analyse the performance of the students on the basis of class. Add title, legend, label on
both axis of the chart.
Solution:
plt.plot(classx,Totalmarks,'r',marker ='*')
# To Write Title of the Line Chart
plt.ylabel('MARKS')
plt.show()
_________________________________________________________________________________
Output :
_____________________________________________________________________________________________