Example #1
0
 def test_resample_w(self):
     d1 = datetime(2016, 1, 1, 1, 1, 1)
     d2 = datetime(2016, 12, 1, 1, 1, 1)
     e1 = Entry(date=d1, value=1.0)
     e2 = Entry(date=d2, value=2.0)
     resampled = resample([e1, e2], by="Y")
     eq_(resampled[0], [2016])
Example #2
0
 def test_resampled_err(self):
     resample(self.ch.entries, by="XYZ")