<filename>visualization.py
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

df = pd.read_csv('./data/student-por.csv', delimiter=";")

df['AVG_G'] = round((df['G1'] + df['G2'] + df['G3']) / 3)
print(df.iloc[:, 33])
plt.bar(df.iloc[:, 2], df.iloc[:, 33])
plt.xlabel("Age")
plt.ylabel("Average Scores")
plt.title("Age - Average Score")
plt.savefig("age-avg_g_bar")



<filename>visualization.py
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

df = pd.read_csv('./data/student-por.csv', delimiter=";")

df['AVG_G'] = round((df['G1'] + df['G2'] + df['G3']) / 3)
print(df.iloc[:, 33])
plt.bar(df.iloc[:, 2], df.iloc[:, 33])
plt.xlabel("Age")
plt.ylabel("Average Scores")
plt.title("Age - Average Score")
plt.savefig("age-avg_g_bar")


