Skip to content

Commit 539d51c

Browse files
authored
DOC: Update import statement (GH21749) (#45841)
1 parent d9c479a commit 539d51c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/algorithms.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1418,20 +1418,20 @@ def take(
14181418
14191419
Examples
14201420
--------
1421-
>>> from pandas.api.extensions import take
1421+
>>> import pandas as pd
14221422
14231423
With the default ``allow_fill=False``, negative numbers indicate
14241424
positional indices from the right.
14251425
1426-
>>> take(np.array([10, 20, 30]), [0, 0, -1])
1426+
>>> pd.api.extensions.take(np.array([10, 20, 30]), [0, 0, -1])
14271427
array([10, 10, 30])
14281428
14291429
Setting ``allow_fill=True`` will place `fill_value` in those positions.
14301430
1431-
>>> take(np.array([10, 20, 30]), [0, 0, -1], allow_fill=True)
1431+
>>> pd.api.extensions.take(np.array([10, 20, 30]), [0, 0, -1], allow_fill=True)
14321432
array([10., 10., nan])
14331433
1434-
>>> take(np.array([10, 20, 30]), [0, 0, -1], allow_fill=True,
1434+
>>> pd.api.extensions.take(np.array([10, 20, 30]), [0, 0, -1], allow_fill=True,
14351435
... fill_value=-10)
14361436
array([ 10, 10, -10])
14371437
"""

0 commit comments

Comments
 (0)