@@ -158,6 +158,12 @@ class ExtensionArray:
158
158
_values_for_argsort
159
159
_values_for_factorize
160
160
161
+ See Also
162
+ --------
163
+ api.extensions.ExtensionDtype : A custom data type, to be paired with an
164
+ ExtensionArray.
165
+ api.extensions.ExtensionArray.dtype : An instance of ExtensionDtype.
166
+
161
167
Notes
162
168
-----
163
169
The interface includes the following abstract methods that must be
@@ -289,6 +295,13 @@ def _from_sequence(
289
295
-------
290
296
ExtensionArray
291
297
298
+ See Also
299
+ --------
300
+ api.extensions.ExtensionArray._from_sequence_of_strings : Construct a new
301
+ ExtensionArray from a sequence of strings.
302
+ api.extensions.ExtensionArray._hash_pandas_object : Hook for
303
+ hash_pandas_object.
304
+
292
305
Examples
293
306
--------
294
307
>>> pd.arrays.IntegerArray._from_sequence([4, 5])
@@ -1707,6 +1720,17 @@ def _formatter(self, boxed: bool = False) -> Callable[[Any], str | None]:
1707
1720
when ``boxed=False`` and :func:`str` is used when
1708
1721
``boxed=True``.
1709
1722
1723
+ See Also
1724
+ --------
1725
+ api.extensions.ExtensionArray._concat_same_type : Concatenate multiple
1726
+ array of this dtype.
1727
+ api.extensions.ExtensionArray._explode : Transform each element of
1728
+ list-like to a row.
1729
+ api.extensions.ExtensionArray._from_factorized : Reconstruct an
1730
+ ExtensionArray after factorization.
1731
+ api.extensions.ExtensionArray._from_sequence : Construct a new
1732
+ ExtensionArray from a sequence of scalars.
1733
+
1710
1734
Examples
1711
1735
--------
1712
1736
>>> class MyExtensionArray(pd.arrays.NumpyExtensionArray):
@@ -1783,11 +1807,21 @@ def _concat_same_type(cls, to_concat: Sequence[Self]) -> Self:
1783
1807
Parameters
1784
1808
----------
1785
1809
to_concat : sequence of this type
1810
+ An array of the same dtype to concatenate.
1786
1811
1787
1812
Returns
1788
1813
-------
1789
1814
ExtensionArray
1790
1815
1816
+ See Also
1817
+ --------
1818
+ api.extensions.ExtensionArray._explode : Transform each element of
1819
+ list-like to a row.
1820
+ api.extensions.ExtensionArray._formatter : Formatting function for
1821
+ scalar values.
1822
+ api.extensions.ExtensionArray._from_factorized : Reconstruct an
1823
+ ExtensionArray after factorization.
1824
+
1791
1825
Examples
1792
1826
--------
1793
1827
>>> arr1 = pd.array([1, 2, 3])
@@ -1838,11 +1872,20 @@ def _accumulate(
1838
1872
Returns
1839
1873
-------
1840
1874
array
1875
+ An array performing the accumulation operation.
1841
1876
1842
1877
Raises
1843
1878
------
1844
1879
NotImplementedError : subclass does not define accumulations
1845
1880
1881
+ See Also
1882
+ --------
1883
+ api.extensions.ExtensionArray._concat_same_type : Concatenate multiple
1884
+ array of this dtype.
1885
+ api.extensions.ExtensionArray.view : Return a view on the array.
1886
+ api.extensions.ExtensionArray._explode : Transform each element of
1887
+ list-like to a row.
1888
+
1846
1889
Examples
1847
1890
--------
1848
1891
>>> arr = pd.array([1, 2, 3])
0 commit comments