File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -848,14 +848,14 @@ Of course if you need integer based selection, then use ``iloc``
848
848
Miscellaneous indexing FAQ
849
849
--------------------------
850
850
851
- Integer indexing with ix
852
- ~~~~~~~~~~~~~~~~~~~~~~~~
851
+ Integer indexing
852
+ ~~~~~~~~~~~~~~~~
853
853
854
854
Label- based indexing with integer axis labels is a thorny topic. It has been
855
855
discussed heavily on mailing lists and among various members of the scientific
856
856
Python community. In pandas, our general viewpoint is that labels matter more
857
857
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
859
859
following code will generate exceptions:
860
860
861
861
.. code- block:: python
@@ -864,7 +864,7 @@ following code will generate exceptions:
864
864
s[- 1 ]
865
865
df = pd.DataFrame(np.random.randn(5 , 4 ))
866
866
df
867
- df.ix [- 2 :]
867
+ df.loc [- 2 :]
868
868
869
869
This deliberate decision was made to prevent ambiguities and subtle bugs (many
870
870
users reported finding bugs when the API change was made to stop " falling back"
You can’t perform that action at this time.
0 commit comments