Skip to content

Commit 1e7c52a

Browse files
DOC: clarify note about optimized indexing methods
1 parent a6e039e commit 1e7c52a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

doc/source/user_guide/indexing.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ this area.
2020

2121
.. note::
2222

23-
The Python and NumPy indexing operators ``[]`` and attribute operator ``.``
24-
provide quick and easy access to pandas data structures across a wide range
25-
of use cases. This makes interactive work intuitive, as there's little new
26-
to learn if you already know how to deal with Python dictionaries and NumPy
23+
The Python and NumPy indexing operators ``[]`` and the attribute operator ``.``
24+
provide quick and easy access to pandas data structures across a wide range of
25+
use cases. This makes interactive work intuitive, as there's little new to
26+
learn if you already know how to deal with Python dictionaries and NumPy
2727
arrays. However, since the type of the data to be accessed isn't known in
28-
advance, directly using standard operators has some optimization limits. For
29-
production code, we recommended that you take advantage of the optimized
30-
pandas data access methods exposed in this chapter.
28+
advance, directly using these standard operators has some optimization limits.
3129

30+
For performance-critical or production code, we recommend using the optimized
31+
pandas data access methods (such as ``.loc`` and ``.iloc``) described in this
32+
chapter.
33+
3234
See the :ref:`MultiIndex / Advanced Indexing <advanced>` for ``MultiIndex`` and more advanced indexing documentation.
3335

3436
See the :ref:`cookbook<cookbook.selection>` for some advanced strategies.

0 commit comments

Comments
 (0)