============================= test session starts ============================= platform win32 -- Python 3.8.6, pytest-6.1.1, py-1.9.0, pluggy-0.13.1 rootdir: C:\git\pandas-smithto1, configfile: pyproject.toml plugins: hypothesis-5.28.0, asyncio-0.12.0, cov-2.10.1, forked-1.3.0, instafail-0.4.1, xdist-2.1.0 collected 1 item test_groupby_shift_diff.py F ================================== FAILURES =================================== ______________________ test_group_shift_with_fill_value _______________________ def test_group_shift_with_fill_value(): # GH #24128 n_rows = 24 df = DataFrame( [(i % 12, i % 3, i) for i in range(n_rows)], dtype=float, columns=["A", "B", "Z"], index=None, ) g = df.groupby(["A", "B"]) expected = DataFrame( [(i + 12 if i < n_rows - 12 else 0) for i in range(n_rows)], dtype=float, columns=["Z"], index=None, ) result = g.shift(-1, fill_value=0) > tm.assert_frame_equal(result, expected) E AssertionError: DataFrame are different E E DataFrame shape mismatch E [left]: (24, 3) E [right]: (24, 1) test_groupby_shift_diff.py:60: AssertionError ============================== warnings summary =============================== ..\..\..\..\..\anaconda3\envs\pandas-dev\lib\site-packages\win32\lib\pywintypes.py:2 C:\anaconda3\envs\pandas-dev\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp, sys, os -- Docs: https://docs.pytest.org/en/stable/warnings.html - generated xml file: C:\git\pandas-smithto1\pandas\tests\groupby\test-data.xml - ============================ slowest 30 durations ============================= 0.01s call pandas/tests/groupby/test_groupby_shift_diff.py::test_group_shift_with_fill_value (2 durations < 0.005s hidden. Use -vv to show these durations.) =========================== short test summary info =========================== FAILED test_groupby_shift_diff.py::test_group_shift_with_fill_value - Asserti... ======================== 1 failed, 1 warning in 0.40s =========================