I have the following dataframe:
month value
0 1949-01 3
1 1949-02 4
2 1949-03 5
df['month'] = pd.to_datetime(df['month'], format= '%Y/%m')
I would like to obtain the month in the following format:
1949/01
But the output is always this:
month value
0 1949-01-01 3
1 1949-02-01 4
2 1949-03-01 5
Why does it automatically add the day and doesn't respect the format?