I have df
ID month
0 0001ee12f919a1b570658024bb59d118 2014-02
1 0001ee12f919a1b570658024bb59d118 2014-03
2 0001ee12f919a1b570658024bb59d118 2014-04
3 0001ee12f919a1b570658024bb59d118 2014-05
4 0001ee12f919a1b570658024bb59d118 2014-06
5 0001ee12f919a1b570658024bb59d118 2014-07
and I try to turn year_month
to datetime.
I use df1['month'] = pd.to_datetime(df1.month)
but it return ValueError: Unknown string format
how can I fix that?