I have the following code:
import pandas as pd
import calendar
import datetime
dataframe_index = pd.date_range('2014-1','2014-12', freq='MS').strftime("%B")
data1 = pd.DataFrame(index =dataframe_index, columns = ['fruits'])
data1
Out[108]:
fruits
January NaN
February NaN
March NaN
April NaN
May NaN
June NaN
July NaN
August NaN
September NaN
October NaN
November NaN
December NaN
How can i add say apple to the month on July ? The index is not datetime
format but string.