interpolate to specific time
问题 Let's say I have this code: import numpy as np import time from datetime import datetime class Measurements(): def __init__(self, time_var, value): self.time_var = time_var self.value = value a = np.array([ Measurements('30-01-2017 12:02:15.880922', 100), Measurements('30-01-2017 12:02:16.880922', 100), Measurements('30-01-2017 12:02:17.880922', 110), Measurements('30-01-2017 12:02:18.880922', 99), Measurements('30-01-2017 12:02:19.880922', 96)]) b = np.array([ Measurements('30-01-2017 12:02