Skip to content

Commit 7d96d25

Browse files
Refer to pandas.concat instead of pandas.core.reshape.concat
1 parent c1289e9 commit 7d96d25

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/source/whatsnew/v1.4.0.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ Use :func:`pandas.core.reshape.concat` instead (:issue:`35407`).
463463
In [3]: df2 = pd.DataFrame([[5, 6], [7, 8]], columns=list('AB'))
464464
In [4]: df1.append(df2)
465465
Out [4]:
466-
<stdin>:1: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.core.reshape.concat instead.
466+
<stdin>:1: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
467467
A B
468468
0 1 2
469469
1 3 4
@@ -474,7 +474,7 @@ Use :func:`pandas.core.reshape.concat` instead (:issue:`35407`).
474474

475475
.. code-block:: ipython
476476
477-
In [1]: pd.core.reshape.concat.concat([pd.Series([1, 2]), pd.Series([3, 4])])
477+
In [1]: pd.concat([pd.Series([1, 2]), pd.Series([3, 4])])
478478
Out [1]:
479479
0 1
480480
1 2
@@ -484,7 +484,7 @@ Use :func:`pandas.core.reshape.concat` instead (:issue:`35407`).
484484
485485
In [2]: df1 = pd.DataFrame([[1, 2], [3, 4]], columns=list('AB'))
486486
In [3]: df2 = pd.DataFrame([[5, 6], [7, 8]], columns=list('AB'))
487-
In [4]: pd.core.reshape.concat.concat([df1, df2])
487+
In [4]: pd.concat([df1, df2])
488488
Out [4]:
489489
A B
490490
0 1 2

pandas/core/frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9117,9 +9117,9 @@ def append(
91179117
warnings.warn(
91189118
"The frame.append method is deprecated "
91199119
"and will be removed from pandas in a future version. "
9120-
"Use pandas.core.reshape.concat instead.",
9120+
"Use pandas.concat instead.",
91219121
FutureWarning,
9122-
stacklevel=2,
9122+
stacklevel=find_stack_level(),
91239123
)
91249124

91259125
combined_columns = None

pandas/core/series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2891,9 +2891,9 @@ def append(
28912891
warnings.warn(
28922892
"The frame.append method is deprecated "
28932893
"and will be removed from pandas in a future version. "
2894-
"Use pandas.core.reshape.concat instead.",
2894+
"Use pandas.concat instead.",
28952895
FutureWarning,
2896-
stacklevel=2,
2896+
stacklevel=find_stack_level(),
28972897
)
28982898

28992899
from pandas.core.reshape.concat import concat

0 commit comments

Comments
 (0)