Question: Python Practical 2 - Plotting a trend graph in Python Construct a line graph showing 2 trends based on: Marks achieved in 2 0 1
Python Practical Plotting a trend graph in Python
Construct a line graph showing trends based on:
Marks achieved in by subject.
Based on groups score: Semester and Semester
based on the following dataframe.
#import all the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Create a dataframe
data
"Subject": Math "Science", "History", "English", "Geography", "Economics"
"Marks:
"Semester": Semester "Semester "Semester "Semester "Semester "Semester
df pdDataFramedata
printdf
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
