Skip to content

Commit 12b6572

Browse files
committed
Update indexing.rst
1 parent f17b96c commit 12b6572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/indexing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ and column labels, this can be achieved by ``pandas.factorize`` and NumPy index
14641464

14651465
For heterogeneous column types, we subset columns to avoid unnecessary numpy conversions:
14661466

1467-
.. ipython:: python
1467+
.. code-block:: python
14681468
14691469
def pd_lookup_het(df, row_labels, col_labels):
14701470
rows = df.index.get_indexer(row_labels)
@@ -1480,7 +1480,7 @@ For heterogeneous column types, we subset columns to avoid unnecessary numpy con
14801480
14811481
For homogeneous column types, it is fastest to skip column subsetting and go directly to numpy:
14821482

1483-
.. ipython:: python
1483+
.. code-block:: python
14841484
14851485
def pd_lookup_hom(df, row_labels, col_labels):
14861486
rows = df.index.get_indexer(row_labels)

0 commit comments

Comments
 (0)