If I have a data table set up as below
| Col1 | Col2 | Col3 | Col4 |
| 1 | a | e | 20 |
| 2 | b | f | 21 |
| 3 | c | g | 22 |
and a list of strings for new column names
NewCols = { "Data1", "Data2", "Data3", "Data4"}
How can I write a script to rename the columns of the data table all once using the list New Cols such that it results in the following data table?
| Data1 | Data2 | Data3 | Data4 |
| 1 | a | e | 20 |
| 2 | b | f | 21 |
| 3 | c | g | 22 |