Replacing Columns with a reference Table

I about 5000 columns in table which are just codes like this:

1001 1002 1003 1004.....4999

a       f            f           f         .....f  

And I have another CSV file which contains the Names for these codes. I need to replace my column headers (which are codes) with these names from CSV file.

it would finally look like this :

name1 name2 name3....name4999

a            f               f                       f 

 

Is there an elegant way of doing this without using R/javascript or another scipt.  ?

Any help would be apprecaited.

Thanks ! 

-Mohammed Ayub

I think you are looking for the Insert Column Header node.