Skip to content

Commit 6aea232

Browse files
committed
Merge branch 'master' of https://github.com/grechkay/pandas-1 into grechkay-master
2 parents e1cd966 + dfb5585 commit 6aea232

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

doc/source/indexing.rst

+9-7
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@ of multi-axis indexing.
9696
See more at :ref:`Selection by Position <indexing.integer>`
9797

9898
- ``.ix`` supports mixed integer and label based access. It is primarily label
99-
based, but will fall back to integer positional access. ``.ix`` is the most
100-
general and will support any of the inputs to ``.loc`` and ``.iloc``, as well
101-
as support for floating point label schemes. ``.ix`` is especially useful
102-
when dealing with mixed positional and label based hierarchical indexes.
103-
As using integer slices with ``.ix`` have different behavior depending on
104-
whether the slice is interpreted as position based or label based, it's
105-
usually better to be explicit and use ``.iloc`` or ``.loc``.
99+
based, but will fall back to integer positional access unless the corresponding
100+
axis is of integer type. ``.ix`` is the most general and will
101+
support any of the inputs in ``.loc`` and ``.iloc``. ``.ix`` also supports floating point
102+
label schemes. ``.ix`` is exceptionally useful when dealing with mixed positional
103+
and label based hierachical indexes.
104+
105+
However, when an axis is integer based, ONLY
106+
label based access and not positional access is supported.
107+
Thus, in such cases, it's usually better to be explicit and use ``.iloc`` or ``.loc``.
106108

107109
See more at :ref:`Advanced Indexing <advanced>`, :ref:`Advanced
108110
Hierarchical <advanced.advanced_hierarchical>` and :ref:`Fallback Indexing

0 commit comments

Comments
 (0)