Skip to content

Commit aa5f461

Browse files
committed
fix insert
1 parent cb4bd75 commit aa5f461

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
175175
-i "pandas.Timestamp.tzinfo GL08" \
176176
-i "pandas.Timestamp.value GL08" \
177177
-i "pandas.Timestamp.year GL08" \
178-
-i "pandas.api.extensions.ExtensionArray.insert PR07,RT03,SA01" \
179178
-i "pandas.api.extensions.ExtensionArray.interpolate PR01,SA01" \
180179
-i "pandas.api.extensions.ExtensionArray.isin PR07,RT03,SA01" \
181180
-i "pandas.api.extensions.ExtensionArray.tolist RT03,SA01" \

pandas/core/arrays/base.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2239,11 +2239,18 @@ def insert(self, loc: int, item) -> Self:
22392239
Parameters
22402240
----------
22412241
loc : int
2242+
Index where the `item` needs to be inserted.
22422243
item : scalar-like
2244+
Value to be inserted.
22432245
22442246
Returns
22452247
-------
2246-
same type as self
2248+
ExtensionArray
2249+
With `item` inserted at `loc`.
2250+
2251+
See Also
2252+
--------
2253+
Index.insert: Make new Index inserting new item at location.
22472254
22482255
Notes
22492256
-----

0 commit comments

Comments
 (0)