How to generate columns dynamically?
For Example if i have my input csv file with the below structure
Entity, Table, Type, Pos, Name
output table structure should look like below. but i dont know how many times it has to generate same column names. Suppose if i wanted to get three times it has repeated dynamically then it has to generate same columns thrice like below.
Entity, Table, Type, Pos, Name, Entity_1, Table_1, Type_1, Pos_1, Name_1, Entity_2, Table_2, Type_2, Pos_2, Name_2,Entity_3, Table_3, Type_3, Pos_3, Name_3
One more thing i am looking like above scenario is if i know entity and Table columns are coming as input and for the output if i wanted to generate 5times for Entity i.e Entity,Entity_1,Entity_2,Entity_3,Entity_4 and Table column has to be repeated 2times i.e Table, Table_1
Any suggestions?
For Example if i have my input csv file with the below structure
Entity, Table, Type, Pos, Name
output table structure should look like below. but i dont know how many times it has to generate same column names. Suppose if i wanted to get three times it has repeated dynamically then it has to generate same columns thrice like below.
Entity, Table, Type, Pos, Name, Entity_1, Table_1, Type_1, Pos_1, Name_1, Entity_2, Table_2, Type_2, Pos_2, Name_2,Entity_3, Table_3, Type_3, Pos_3, Name_3
One more thing i am looking like above scenario is if i know entity and Table columns are coming as input and for the output if i wanted to generate 5times for Entity i.e Entity,Entity_1,Entity_2,Entity_3,Entity_4 and Table column has to be repeated 2times i.e Table, Table_1
Any suggestions?