def test_tsclean(self): clean_gold = wrappers.tsclean(converters.ts_as_series(self.gold)) self.assertFalse(clean_gold.isnull().any()) self.assertAlmostEqual(clean_gold[56], 333.250, places=3) self.assertAlmostEqual(clean_gold[419],394.5, places=3) self.assertAlmostEqual(clean_gold[604], 476.6000, places=3)
def test_tsclean(self): gold_py = converters.ts_as_series(converters.ts(self.gold)) clean_py = wrappers.tsclean(gold_py) self.assertFalse(clean_py.isnull().any()) clean_r = self.fc.tsclean(converters.ts(self.gold)) self.assertAlmostEqual(clean_py[770], clean_r.rx(770), places=3)
def test_tsclean(self): gold_py = converters.ts_as_series(self.gold) clean_py = wrappers.tsclean(gold_py) self.assertFalse(clean_py.isnull().any()) clean_r = self.fc.tsclean(self.gold) self.assertAlmostEqual(clean_py[770], clean_r.rx(770), places=3)