I have an list of dates and I am trying to put that dates as a header of excel file. I have tried using Dataframe and dict but it's overwriting the file and employee names removed from the excel which I don't want. This is Sample excel Header Image:
and the following code:
dates = ['13-Dec', '20-Dec', '27-Dec', '03-Jan', '10-Jan']
df = pd.read_excel('C://Users//AMANSHAW//Desktop//color_it.xlsx')
df.columns = dates
df.rename(columns = dates , inplace=True)
Error:
TypeError: 'list' object is not callable
