I have written a simple python code with Spyder to generate a line graph representing Average House price (Y-axis) against the year (x-axis) there are about 600 entries into the data frame for each though as there is data for every month since 1969 to 2019. This has caused the line graphs x-axis to just be a big black bar of overlapping text. The y-axis is fine as it's just adjusted to increments of 20,000. Sorry for the beginner questions I've tried reading some of the resources online but there is often more advanced coding at play that does not work within mine. Thanks in advance :)
import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_csv('ScottishAveragePrices2.csv')
df1 = df.groupby(['Date']).mean().sort_values('AveragePrice')
plt.plot(df['Date'], df['AveragePrice'])
plt.show()enter code here