Skip to content

Commit 682c001

Browse files
committed
fix isin
1 parent aa5f461 commit 682c001

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ci/code_checks.sh

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

pandas/core/arrays/base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,10 +1452,18 @@ def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]:
14521452
Parameters
14531453
----------
14541454
values : np.ndarray or ExtensionArray
1455+
Values to compare every element in the array against.
14551456
14561457
Returns
14571458
-------
14581459
np.ndarray[bool]
1460+
With true at indices where value is in `values`.
1461+
1462+
See Also
1463+
--------
1464+
DataFrame.isin: Whether each element in the DataFrame is contained in values.
1465+
Index.isin: Return a boolean array where the index values are in values.
1466+
Series.isin: Whether elements in Series are contained in values.
14591467
14601468
Examples
14611469
--------

0 commit comments

Comments
 (0)