def test_http_path(self, feather_file): # GH 29055 url = ("https://raw.githubusercontent.com/pandas-dev/pandas/master/" "pandas/tests/io/data/feather/feather-0_3_1.feather") expected = read_feather(feather_file) res = read_feather(url) tm.assert_frame_equal(expected, res)
def test_read_feather_s3_file_path(self, feather_file, s3so): # GH 29055 expected = read_feather(feather_file) res = read_feather( "s3://pandas-test/simple_dataset.feather", storage_options=s3so ) tm.assert_frame_equal(expected, res)
def check_round_trip(self, df, **kwargs): with ensure_clean() as path: to_feather(df, path) result = read_feather(path, **kwargs) assert_frame_equal(result, df)
def check_round_trip(self, df, **kwargs): with ensure_clean() as path: to_feather(df, path) with catch_warnings(record=True): result = read_feather(path, **kwargs) assert_frame_equal(result, df)
def check_round_trip(self, df, expected=None, write_kwargs={}, **read_kwargs): if expected is None: expected = df with tm.ensure_clean() as path: to_feather(df, path, **write_kwargs) result = read_feather(path, **read_kwargs) tm.assert_frame_equal(result, expected)
def check_round_trip(self, df, expected=None, **kwargs): if expected is None: expected = df with ensure_clean() as path: to_feather(df, path) result = read_feather(path, **kwargs) assert_frame_equal(result, expected)