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
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))