示例#1
0
 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)
示例#2
0
 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)
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
    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)
示例#6
0
    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)
示例#7
0
    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)
示例#8
0
    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)
示例#9
0
    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)