Skip to content

Commit c9e41cc

Browse files
Redo updates after ix deprecation
1 parent ab7fdf0 commit c9e41cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/source/advanced.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -848,14 +848,14 @@ Of course if you need integer based selection, then use ``iloc``
848848
Miscellaneous indexing FAQ
849849
--------------------------
850850
851-
Integer indexing with ix
852-
~~~~~~~~~~~~~~~~~~~~~~~~
851+
Integer indexing
852+
~~~~~~~~~~~~~~~~
853853
854854
Label-based indexing with integer axis labels is a thorny topic. It has been
855855
discussed heavily on mailing lists and among various members of the scientific
856856
Python community. In pandas, our general viewpoint is that labels matter more
857857
than integer locations. Therefore, with an integer axis index *only*
858-
label-based indexing is possible with the standard tools like ``.ix``. The
858+
label-based indexing is possible with the standard tools like ``.loc``. The
859859
following code will generate exceptions:
860860
861861
.. code-block:: python
@@ -864,7 +864,7 @@ following code will generate exceptions:
864864
s[-1]
865865
df = pd.DataFrame(np.random.randn(5, 4))
866866
df
867-
df.ix[-2:]
867+
df.loc[-2:]
868868
869869
This deliberate decision was made to prevent ambiguities and subtle bugs (many
870870
users reported finding bugs when the API change was made to stop "falling back"

0 commit comments

Comments
 (0)