예제 #1
0
 def test_save_load(self):
     self.series.save('tmp1')
     self.ts.save('tmp3')
     unp_series = Series.load('tmp1')
     unp_ts = Series.load('tmp3')
     os.remove('tmp1')
     os.remove('tmp3')
     assert_series_equal(unp_series, self.series)
     assert_series_equal(unp_ts, self.ts)
예제 #2
0
 def _pickle_roundtrip(self, obj):
     obj.save('__tmp__')
     unpickled = Series.load('__tmp__')
     os.remove('__tmp__')
     return unpickled