I want to concatenate 400 csv large files with same number of columns but the columns names are different
For example
File#1
id | 101mean |
---|---|
a1 | 2 |
a2 | 6 |
File#2
id | 202mean |
---|---|
a1 | 3 |
a2 | 2 |
Expected result
id | mean |
---|---|
a1 | 2 |
a2 | 6 |
a1 | 3 |
a2 | 2 |
The rows are one below the other
So what should I do to merge the files based on index of columns or change the headers for all csv large files, with Python or R?
Also I can not use pandas because the size of files are very large
Thanks in advance