I have a Pandas dataframe with many columns. The first column has dates listed as "Year-Month-Date" already set as a datetime type by using:
df_all['Date']=pd.to_datetime(df_all['Date'].astype(str),errors='coerce')
The data looks like:
0 2008-01-01 00:00:00 100 16250.0
1 2008-01-01 00:00:00 150 13740.0
2 2008-01-01 00:00:00 200 11900.0
3 2008-01-01 00:00:00 250 10460.0
I wish to simply drop the year so the column reads "Month-Date" without changing the other data in the columns associated with each row.