import numpy as np
import pandas as pd
import matplot.pyplot as plt
file_path = "C:/Users/user/Downloads/wetherHistory.csv"
file = pd.read_csv(file_path)
titles_req = ["Formatted Date","Apparent Temerature(c)","Humidity"]
df = files[titles_req]
df['Formatted Date'] = pd.to_datetime(df['Formatted Date'],utc=True)
df_1 = df.set_index('Formatted Dates')
df_1 = df_1.resample('MS').mean()
df_1.head()
plt.figure(figsize(14,6))
plt.title("Variation in apperent temperature and Humidity with time")
plt.plot(df_1)
df_april = df_1[df_1.index.month==4]
plt.figure(figsize=(14,6))
plt.plot(df_april)
ReplyDeleteVery Informative and creative contents. This concept is a good way to enhance the knowledge. thanks for sharing.
Continue to share your knowledge through articles like these, and keep posting more blogs.
And more Information Data scraping service in Australia