I am loading two csv files using the following code
d3.csv(\"sqrt100train.csv\", function(error, data2) { d3.csv(\"sqrt100test.csv\", function(error, dat
If you want to create new array:
var newArray = []; for(var i = 0; i < data.length; i++) { newArray.push({Trees: data[i].Trees, Train: data[i].Train, Test: data2[i].Test}); }