Skip to content

Commit 200b1a3

Browse files
Backport PR pandas-dev#38957: DOC: move API breaking "check_freq" section from v1.2.1rst to v1.1.0.rst (pandas-dev#38958)
Co-authored-by: kylekeppler <[email protected]>
1 parent 23cdcf7 commit 200b1a3

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

doc/source/whatsnew/v1.1.0.rst

+13
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,19 @@ apply and applymap on ``DataFrame`` evaluates first row/column only once
716716
717717
df.apply(func, axis=1)
718718
719+
.. _whatsnew_110.api_breaking:
720+
721+
Backwards incompatible API changes
722+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
723+
724+
.. _whatsnew_110.api_breaking.testing.check_freq:
725+
726+
Added ``check_freq`` argument to ``testing.assert_frame_equal`` and ``testing.assert_series_equal``
727+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
728+
729+
The ``check_freq`` argument was added to :func:`testing.assert_frame_equal` and :func:`testing.assert_series_equal` in pandas 1.1.0 and defaults to ``True``. :func:`testing.assert_frame_equal` and :func:`testing.assert_series_equal` now raise ``AssertionError`` if the indexes do not have the same frequency. Before pandas 1.1.0, the index frequency was not checked.
730+
731+
719732
Increased minimum versions for dependencies
720733
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
721734

doc/source/whatsnew/v1.2.1.rst

+1-15
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,6 @@ 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.check_freq:
19-
20-
Added ``check_freq`` argument to ``testing.assert_frame_equal`` and ``testing.assert_series_equal``
21-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22-
23-
The ``check_freq`` argument was added to :func:`testing.assert_frame_equal` and :func:`testing.assert_series_equal` in pandas 1.1.0 and defaults to ``True``. :func:`testing.assert_frame_equal` and :func:`testing.assert_series_equal` now raise ``AssertionError`` if the indexes do not have the same frequency. Before pandas 1.1.0, the index frequency was not checked.
24-
25-
.. ---------------------------------------------------------------------------
26-
2713
.. _whatsnew_121.regressions:
2814

2915
Fixed regressions
@@ -62,7 +48,7 @@ I/O
6248
Other
6349
~~~~~
6450
- Fixed build failure on MacOS 11 in Python 3.9.1 (:issue:`38766`)
65-
-
51+
- Added reference to backwards incompatible ``check_freq`` arg of :func:`testing.assert_frame_equal` and :func:`testing.assert_series_equal` in :ref:`pandas 1.1.0 whats new <whatsnew_110.api_breaking.testing.check_freq>` (:issue:`34050`)
6652

6753
.. ---------------------------------------------------------------------------
6854

0 commit comments

Comments
 (0)