This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code show how to resample dataframe within javascript. | |
// It is based on the following link: | |
// https://gist.github.com/edouardswiac/0782cfb1fc66aba6b0ffca06c01c03b2 | |
var moment = require('moment') | |
// our time precision | |
let timeUnit = 'minute' | |
let startTime = moment().startOf(timeUnit) |