John
2.
a) Mr. Sanjay wants to plot a line graph for the given set of values of subjecton x-axis and number of
students who opted for that subject on y-axis. Complete the code to perform the following:
2
(i) To plot the line graph in statement 1
(11) To display the graph in statement 2
importmatplotlib.pyplot as plt
x=['Hindi', 'English', 'Science', 'SST"]
y=[10,20,30,40]
Statement 1
Statement 2
4
b) Consider a dataframe df above and write statements to do the following:
i) Extract column 'Age'
Delete column 'Age'
iii) Add a column 'Marks' with default values as '10'
iv) List only row 3rd using iloc.
c) Write Python code to display the following bar chart that represents data regarding different
programming languages. Write appropriate statements to provide labels to x and y axis respectively. 4
Programming language usage
hage
Python
Answers
Answered by
2
जानता नहीं क्या होता है यह लेकिन थोड़ा बड़ा है
Similar questions