Skip to content

Commit a5c1099

Browse files
kylekepplerKeppler, Kyle
authored and
Keppler, Kyle
committed
Backport PR pandas-dev#38471: DOC: fixes for assert_frame_equal check_freq argument
1 parent 34a4e12 commit a5c1099

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

doc/source/whatsnew/v1.2.1.rst

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ including other versions of pandas.
1010

1111
.. ---------------------------------------------------------------------------
1212
13+
.. _whatsnew_121.api_breaking:
14+
15+
Backwards incompatible API changes
16+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17+
18+
.. _whatsnew_121.api_breaking.testing.assert_frame_equal:
19+
20+
Added ``check_freq`` argument to ``testing.assert_frame_equal``
21+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22+
23+
The ``check_freq`` argument was added to :func:`testing.assert_frame_equal` in pandas 1.1.0 and defaults to ``True``. :func:`testing.assert_frame_equal` now raises ``AssertionError`` if the indexes do not have the same frequency. Before pandas 1.1.0, the index frequency was not checked by :func:`testing.assert_frame_equal`.
24+
25+
.. ---------------------------------------------------------------------------
26+
1327
.. _whatsnew_121.regressions:
1428

1529
Fixed regressions

pandas/_testing.py

+2
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,8 @@ def assert_frame_equal(
15781578
(same as in columns) - same labels must be with the same data.
15791579
check_freq : bool, default True
15801580
Whether to check the `freq` attribute on a DatetimeIndex or TimedeltaIndex.
1581+
1582+
.. versionadded:: 1.1.0
15811583
check_flags : bool, default True
15821584
Whether to check the `flags` attribute.
15831585
rtol : float, default 1e-5

0 commit comments

Comments
 (0)