Skip to content

Commit 921056d

Browse files
Merge pull request #10066 from pydata/doc-index-setoperation
DOC: remove use of deprecated index set operation (follow-up GH10042)
2 parents d92e5e3 + ef3ff5b commit 921056d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ Note that the following also works, but is a bit less obvious / clean:
10041004

10051005
.. ipython:: python
10061006
1007-
df.reindex(df.index - ['a', 'd'])
1007+
df.reindex(df.index.difference(['a', 'd']))
10081008
10091009
.. _basics.rename:
10101010

0 commit comments

Comments
 (0)