I have multiple (more than 100) files like this:
filename: 00.csv
residue, vwd, total
AAA,0.00, -9.45
BBB, 0.45, -1.45
CCC, 0.44, -3
DDD, 0.1, -10
filename: 01.csv
residue, vwd, total
AAA, 2, -0.56
BBB, -4, -9.32
CCC, 2.54, -10
DDD, 3, -6.4
...
I would like to create a matrix in a new csv file where the first column is "residue", and the others are based on filename (without extension). Below filename, it should be values from "total" column. It would be like this:
residue, 00, 01, ...
AAA, -9.45, -0,56, ...
BBB, -1.45, -9.32, ...
CCC, -3, -10,...
DDD, -10, -6.4, ...
. . .
Thanks in advance!