Public
Edited
Nov 1, 2023
Insert cell
Insert cell
timeVector = {
const data = Array.from({ length: 100 }).map((_, i) => new Date(i * 1000));
const builder = new arrow.TimestampSecondBuilder({
type: new arrow.TimestampSecond(),
nullValues: [null, undefined]
});
data.forEach((d) => {
builder.append(d);
});
return builder.finish().toVector();
}
Insert cell
timeVector.toJSON()
Insert cell
arrow = require("apache-arrow@13.0.0")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more