I have a data frame with the below format:
I need to split into tow columns: 1) date (year and month) and 2) values
I have written the below code but returns dimension error:
date_range = pd.date_range(start = '1952-01-1' , end = '2015-01-01' , freq = 'M')
dateFrame = pd.DataFrame({'date':date_range,'val': values.values.tolist()})