I have a data-frame (df):
0 1 2 3 4 5
0 6894 JONES STEVE D 2017-01-03 00:00:00 None
1 13555 SMITH JENNY E 2017-04-01 00:00:00 None
I have a header called new_header that I am applying to the data-frame which looks like:
0 Identifier
1 Surname
2 First name(s)
3 Transferred to
4 Transfer Date
5 Status
I apply new_header with the following:
df.columns = new_header
and I get the following output:
0 Identifier Surname ... Transfer Date Status
0 6894 JONES ... 2017-01-03 00:00:00 None
1 13555 SMITH ... 2017-04-01 00:00:00 None
In the top left corner of df you can see a 0. How can I remove the 0 so my data-frame looks like:
Identifier Surname ... Transfer Date Status
0 6494 JONES ... 2017-01-03 00:00:00 None
1 13595 SMITH ... 2017-04-01 00:00:00 None
df.columns = new_header.values?