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)
def test_hdf(self): self.aux_tempfile('hdf5') write(self.df, self.tempfile) result = read(self.tempfile) assert_frame_equal(self.df, result)
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)