Looking to amend a df:
Test_Data = [
('Client', ['A','B','C']),
('2018-11', [10,20,30]),
('2018-12', [10, 20, 30]),
]
df = pd.DataFrame(dict(Test_Data))
print(df)
Client 2018-11 2018-12
0 A 10 10
1 B 20 20
2 C 30 30
Desired output:
Report_Mongo Client Month_1 Month_2
0 Client 2018-11 2018-12
1 A 10 10
2 B 20 20
3 C 30 30
So move existing headers down one row and insert the new headers:
c = ['Report_Mongo','client', 'Month_1', 'Month_2']