Computer Science > Presentation > Using matplotlib, you are to create the following 4 graphs.
a)Line graph import pandas as pd import matplotlib.pyplot as plt df=pd.read_csv("weather_report.csv") plt.plot(df.temperature, df.pressure, "r--") plt.title("Plotting of temperature and pressure v/s date ") plt.xlabel("date") plt.ylabel("Temperature n Pressure") plt.show() 2) Histogram import ... pandas as pd #import numpy as np import matplotlib.pyplot as plt df=pd.read_csv("weather.csv") plt.hist(df.Precipitation,bins=10) plt.title("Analysis of Precipitation vs days") plt.xlabel("No of days") plt.show() 3.Scatterplot [Show More]
Generating document previews ...
Category:
Presentation
Course:
Computer Science
Last updated at :
1 year ago