I would like to (manually) create in Python a dataframe with daily dates (in column 'date') as per below code. But the code does not provide the correct format for the daily dates, neglects dates (the desired format representation is below). Could you please advise how I can correct the code so that the 'date' column is entered in a desired format? Thanks in advance!
------------------------------------------------------
desired format for date column
2021-03-22 3
2021-04-07 3
2021-04-18 3
2021-05-12 0
------------------------------------------------------
df1 = pd.DataFrame({"date": [2021-3-22, 2021-4-7, 2021-4-18, 2021-5-12],
"x": [3, 3, 3, 0 ]})
df1
date x
0 1996 3
1 2010 3
2 1999 3
3 2004 0