Skip to content

TST: Pytables Test Failures #39197

Closed
@alimcmaster1

Description

@alimcmaster1

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=52416&view=logs&j=404760ec-14d3-5d48-e580-13034792878f&t=f81e4cc8-d61a-5fb8-36be-36768e5c561a


setup_path = 'tmp.__ocigUbjgSV__.h5'

    @pytest.mark.filterwarnings(
        "ignore:\\nthe :pandas.io.pytables.AttributeConflictWarning"
    )
    def test_coordinates(setup_path):

            assert (c.values == np.arange(2) + 3).all()
            result = store.select("df", where=c)
            expected = df.loc[3:4, :]
            tm.assert_frame_equal(result, expected)
            assert isinstance(c, Index)
    
            # multiple tables
            _maybe_remove(store, "df1")
            _maybe_remove(store, "df2")
            df1 = tm.makeTimeDataFrame()
            df2 = tm.makeTimeDataFrame().rename(columns="{}_2".format)
            store.append("df1", df1, data_columns=["A", "B"])
            store.append("df2", df2)
    
            c = store.select_as_coordinates("df1", ["A>0", "B>0"])
            df1_result = store.select("df1", c)
            df2_result = store.select("df2", c)
            result = concat([df1_result, df2_result], axis=1)
    
            expected = concat([df1, df2], axis=1)
            expected = expected[(expected.A > 0) & (expected.B > 0)]
>           tm.assert_frame_equal(result, expected)
E           AssertionError: (None, <18 * BusinessDays>)

pandas\tests\io\pytables\test_store.py:653: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous IntegrationIO HDF5read_hdf, HDFStoreTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions