image_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

data_orig = pd.read_csv('/kaggle/input/daily-min-temperatures/daily-min-temperatures.csv')

data_orig['Date'] = pd.to_datetime(data_orig['Date']) # convert date column to datetime
ax = data_orig.plot(x='Date', y='Temp', figsize=(12,6))

ax = data_orig.plot(x='Date', y='Temp', figsize=(12, 6))
xcoords = ['1981-01-01', '1982-01-01', '1983-01-01', '1984-01-01', '1985-01-01', '1986-01-01', '1987-01-01', '1988-01-01', '1989-01-01', '1990-01-01', '1990-12-31']
for xc in xcoords:
    plt.axvline(x=xc, color='black', linestyle='--')