Skip to content

Commit 92c4766

Browse files
committed
DOC: make first indexes the same to stress non-uniqueness of resulting index pandas-dev#41407
1 parent 0d33219 commit 92c4766

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/frame.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8816,13 +8816,13 @@ def append(
88168816
A B
88178817
0 1 2
88188818
2 3 4
8819-
>>> df2 = pd.DataFrame([[5, 6], [7, 8]], columns=list('AB'), index=[3, 5])
8819+
>>> df2 = pd.DataFrame([[5, 6], [7, 8]], columns=list('AB'), index=[0, 4])
88208820
>>> df.append(df2)
88218821
A B
88228822
0 1 2
88238823
2 3 4
8824-
3 5 6
8825-
5 7 8
8824+
0 5 6
8825+
4 7 8
88268826
88278827
With `ignore_index` set to True:
88288828

0 commit comments

Comments
 (0)