I have the following dataframe
df = pd.DataFrame({
'date': [1988, 1988, 2000, 2005],
'value': [2100, 4568, 7896, 68909]
})
I want to make a time series based on this df. How can i change the year from int to a datetimeindex so i can plot a timeseries?