@@ -1137,6 +1137,13 @@ def fillna(
1137
1137
ExtensionArray
1138
1138
With NA/NaN filled.
1139
1139
1140
+ See Also
1141
+ --------
1142
+ api.extensions.ExtensionArray.dropna : Return ExtensionArray without
1143
+ NA values.
1144
+ api.extensions.ExtensionArray.isna : A 1-D array indicating if
1145
+ each value is missing.
1146
+
1140
1147
Examples
1141
1148
--------
1142
1149
>>> arr = pd.array([np.nan, np.nan, 2, 3, np.nan, np.nan])
@@ -1220,6 +1227,15 @@ def duplicated(
1220
1227
Returns
1221
1228
-------
1222
1229
ndarray[bool]
1230
+ With true in indices where elements are duplicated and false otherwise.
1231
+
1232
+ See Also
1233
+ --------
1234
+ DataFrame.duplicated : Return boolean Series denoting
1235
+ duplicate rows.
1236
+ Series.duplicated : Indicate duplicate Series values.
1237
+ api.extensions.ExtensionArray.unique : Compute the ExtensionArray
1238
+ of unique values.
1223
1239
1224
1240
Examples
1225
1241
--------
@@ -1303,6 +1319,13 @@ def unique(self) -> Self:
1303
1319
Returns
1304
1320
-------
1305
1321
pandas.api.extensions.ExtensionArray
1322
+ With unique values from the input array.
1323
+
1324
+ See Also
1325
+ --------
1326
+ Index.unique: Return unique values in the index.
1327
+ Series.unique: Return unique values of Series object.
1328
+ unique: Return unique values based on a hash table.
1306
1329
1307
1330
Examples
1308
1331
--------
@@ -1436,10 +1459,18 @@ def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]:
1436
1459
Parameters
1437
1460
----------
1438
1461
values : np.ndarray or ExtensionArray
1462
+ Values to compare every element in the array against.
1439
1463
1440
1464
Returns
1441
1465
-------
1442
1466
np.ndarray[bool]
1467
+ With true at indices where value is in `values`.
1468
+
1469
+ See Also
1470
+ --------
1471
+ DataFrame.isin: Whether each element in the DataFrame is contained in values.
1472
+ Index.isin: Return a boolean array where the index values are in values.
1473
+ Series.isin: Whether elements in Series are contained in values.
1443
1474
1444
1475
Examples
1445
1476
--------
@@ -1743,6 +1774,12 @@ def view(self, dtype: Dtype | None = None) -> ArrayLike:
1743
1774
ExtensionArray or np.ndarray
1744
1775
A view on the :class:`ExtensionArray`'s data.
1745
1776
1777
+ See Also
1778
+ --------
1779
+ api.extensions.ExtensionArray.ravel: Return a flattened view on input array.
1780
+ Index.view: Equivalent function for Index.
1781
+ ndarray.view: New view of array with the same data.
1782
+
1746
1783
Examples
1747
1784
--------
1748
1785
This gives view on the underlying data of an ``ExtensionArray`` and is not a
@@ -2201,6 +2238,12 @@ def tolist(self) -> list:
2201
2238
Returns
2202
2239
-------
2203
2240
list
2241
+ Python list of values in array.
2242
+
2243
+ See Also
2244
+ --------
2245
+ Index.to_list: Return a list of the values in the Index.
2246
+ Series.to_list: Return a list of the values in the Series.
2204
2247
2205
2248
Examples
2206
2249
--------
@@ -2223,11 +2266,18 @@ def insert(self, loc: int, item) -> Self:
2223
2266
Parameters
2224
2267
----------
2225
2268
loc : int
2269
+ Index where the `item` needs to be inserted.
2226
2270
item : scalar-like
2271
+ Value to be inserted.
2227
2272
2228
2273
Returns
2229
2274
-------
2230
- same type as self
2275
+ ExtensionArray
2276
+ With `item` inserted at `loc`.
2277
+
2278
+ See Also
2279
+ --------
2280
+ Index.insert: Make new Index inserting new item at location.
2231
2281
2232
2282
Notes
2233
2283
-----
0 commit comments