示例#1
0
 def test_csv(self):
     # NOTE: pass an int32 to csv, it comes back int64, don't know why
     self.aux_tempfile('csv')
     csv_df = self.df.astype(np.int64)
     write(csv_df, self.tempfile)
     result = read(self.tempfile).set_index('index')
     assert_frame_equal(csv_df, result)
示例#2
0
 def test_hdf(self):
     self.aux_tempfile('hdf5')
     write(self.df, self.tempfile)
     result = read(self.tempfile)
     assert_frame_equal(self.df, result)
示例#3
0
 def test_dta(self):
     self.aux_tempfile('dta')
     write(self.df, self.tempfile)
     result = read(self.tempfile).set_index('index')
     assert_frame_equal(self.df, result)