I need to add 1 day to each date I want to get the begining date of the following month eg 2014-01-2014 for the 1st item in the dataframe. Tried:
montdist[\
No need to turn into an index. Just using .apply() works:
.apply()
df['newdate'] = pd.to_datetime(df['date']).apply(pd.DateOffset(1))