I wrote the python code below to read a CSV and generate multiple plots at once. However, I can't figure out how to give matplotlib the Location value from the csv I'm reading as I would like to have each plot labeled with the location value that I am aggregating on. Please see the code and screenshot below.
import pandas as pd
import datetime
import csv
import matplotlib.pyplot as plt
from google.colab import files
import matplotlib.pyplot as plt
import numpy as np
myfile = files.upload()
df = pd.read_csv('Electricity.csv')
df2 = df.groupby(['Location'], as_index=False)
print(df2)
df2.plot(x='Period', y = 'score', ylim=(0,11))#IDK about ylim being necessary
plt.title('Location', color='black')
plt._show()