예제 #1
0
 def setup(self):
     self.l = Lorpasch(('year', 'month'), ('rainfall', ))
     self.l.insert(2015, 1, 3.3)
     self.l.insert(2015, 2, 8.3)
     self.l.insert(2015, 3, 21.3)
     self.l.insert(2015, 4, 29.3)
     self.l.insert(2015, 5, 23.3)
     self.l.insert(2015, 6, 17.3)
예제 #2
0
 def test_insert_safe(self):
     row = 2015, 7, 17.3
     old = Lorpasch(self.l.df.copy())
     new = old.insert(*row)
     assert len(new.df) == len(old.df) + 1