df2_d3={
let source={
"A":[1,3,2,4],
"B":d3.range(4).map(d=>new Date("2013-1-2")),
"C":d3.range(4).map(d=>1),
"D":d3.range(4).map(d=>3),
"E":["test", "train", "test", "train"],
"F":new Array(4).fill('foo'),
}
let columns=Object.keys(source)
let data=d3.range(4).map((d,i)=>{
return columns.reduce((r,col)=>(r[col]=source[col][i], r),{})
})
return data
}