예제 #1
0
    def test_path_local_path(self, engine, ext):
        df = tm.makeDataFrame()
        writer = partial(df.to_excel, engine=engine)

        reader = partial(pd.read_excel, index_col=0)
        result = tm.round_trip_pathlib(writer, reader, path="foo.{ext}".format(ext=ext))
        tm.assert_frame_equal(result, df)
예제 #2
0
    def test_path_local_path(self, engine, ext):
        df = tm.makeDataFrame()
        writer = partial(df.to_excel, engine=engine)

        reader = partial(pd.read_excel, index_col=0)
        result = tm.round_trip_pathlib(writer, reader,
                                       path="foo.{ext}".format(ext=ext))
        tm.assert_frame_equal(result, df)
예제 #3
0
def test_pickle_path_pathlib():
    df = tm.makeDataFrame()
    result = tm.round_trip_pathlib(df.to_pickle, pd.read_pickle)
    tm.assert_frame_equal(df, result)
예제 #4
0
def test_pickle_path_pathlib():
    df = tm.makeDataFrame()
    result = tm.round_trip_pathlib(df.to_pickle, pd.read_pickle)
    tm.assert_frame_equal(df, result)
예제 #5
0
 def test_path_pathlib(self):
     df = tm.makeDataFrame()
     result = tm.round_trip_pathlib(df.to_msgpack, read_msgpack)
     tm.assert_frame_equal(df, result)
예제 #6
0
 def test_path_pathlib(self):
     df = tm.makeDataFrame().reset_index()
     result = tm.round_trip_pathlib(df.to_feather, pd.read_feather)
     tm.assert_frame_equal(df, result)
예제 #7
0
 def test_path_pathlib(self):
     df = tm.makeDataFrame().reset_index()
     result = tm.round_trip_pathlib(df.to_feather, pd.read_feather)
     tm.assert_frame_equal(df, result)