This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd # Use pandas instead to map the data easily | |
import matplotlib.pyplot as plt # Use Matplotlib PyPlot to create graph | |
import numpy as np # Use Numpy to take mean | |
def all_temp_plot(filename="London_mean_etr_max_etr_min.csv"): | |
# Note: This will not drop years with incomplete datsets. | |
# Read CSV, but only 3 columns because no one cares about the other ones | |
# then group years, then take mean of months and append it to a new column in a new dataframe. | |
df = pd.read_csv(filename, delimiter=',', usecols=[0, 1, 2], |
NewerOlder