コード例 #1
0
ファイル: test_feather.py プロジェクト: sandutsar/pandas
 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
ファイル: test_feather.py プロジェクト: TomAugspurger/pandas
    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
ファイル: test_feather.py プロジェクト: ziggi0703/pandas
    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
ファイル: test_feather.py プロジェクト: yqyan2010/pandas
    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
ファイル: test_feather.py プロジェクト: BobMcFry/pandas
    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
ファイル: test_feather.py プロジェクト: ywpark1/pandas
    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
ファイル: test_feather.py プロジェクト: forking-repos/pandas
    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)