ts = traces.TimeSeries(data=[(datetime(2016, 9, 27, 23, 0, 0, 100000), 10),
    (datetime(2016, 9, 27, 23, 0, 1, 200000), 8), (datetime(2016, 9, 27, 23,
    0, 1, 600000), 0), (datetime(2016, 9, 27, 23, 0, 6, 300000), 4)])
Converting irregularly time stamped measurements into equally spaced, time-weighted averages