Skip to content

Commit 9a729e6

Browse files
gesoosmeeseeksmachine
authored andcommitted
Backport PR pandas-dev#45587: DOC: append deprecation
1 parent 28f5e90 commit 9a729e6

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

doc/source/whatsnew/v1.4.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ will continue to return :class:`Int64Index`, :class:`UInt64Index` and
637637
638638
.. _whatsnew_140.deprecations.frame_series_append:
639639

640-
Deprecated Frame.append and Series.append
641-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
640+
Deprecated DataFrame.append and Series.append
641+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
642642

643643
:meth:`DataFrame.append` and :meth:`Series.append` have been deprecated and will
644-
be removed in Pandas 2.0. Use :func:`pandas.concat` instead (:issue:`35407`).
644+
be removed in a future version. Use :func:`pandas.concat` instead (:issue:`35407`).
645645

646646
*Deprecated syntax*
647647

pandas/core/frame.py

+4
Original file line numberDiff line numberDiff line change
@@ -8930,6 +8930,10 @@ def append(
89308930
"""
89318931
Append rows of `other` to the end of caller, returning a new object.
89328932
8933+
.. deprecated:: 1.4.0
8934+
Use :func:`concat` instead. For further details see
8935+
:ref:`whatsnew_140.deprecations.frame_series_append`
8936+
89338937
Columns in `other` that are not in the caller are added as new columns.
89348938
89358939
Parameters

pandas/core/series.py

+4
Original file line numberDiff line numberDiff line change
@@ -2853,6 +2853,10 @@ def append(
28532853
"""
28542854
Concatenate two or more Series.
28552855
2856+
.. deprecated:: 1.4.0
2857+
Use :func:`concat` instead. For further details see
2858+
:ref:`whatsnew_140.deprecations.frame_series_append`
2859+
28562860
Parameters
28572861
----------
28582862
to_append : Series or list/tuple of Series

0 commit comments

Comments
 (0)