I have multiple csv files in the attached format in a particular folder , how do I generate a new file which contains the summary of the average of all the columns A, B, C, D of each csv file in the below format:
filename | A | B | C | D |
| avg_colA_file1 | avg_colB_file1 | avg_colC_file1 | avg_colC_file1 |
| avg_colA_file2 | avg_colB_file2 | avg_colC_file2 | avg_colC_file2 |
| | | | |
I know to generate the average of each csv file using table summary but how can we do the same for multiple csv files using a single script?