コード例 #1
0
 def test_write_pickle(self):
     orig = test.data_frame("vehicles.csv")
     handle, path = tempfile.mkstemp(".pkl")
     orig.write_pickle(path)
     data = DataFrame.read_pickle(path)
     assert data == orig
コード例 #2
0
 def test_read_pickle_path(self):
     orig = test.data_frame("vehicles.csv")
     handle, path = tempfile.mkstemp(".pkl")
     orig.write_pickle(path)
     DataFrame.read_pickle(Path(path))