You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/development/extending.rst
+7-7
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
{{ header }}
4
4
5
5
****************
6
-
Extending Pandas
6
+
Extending pandas
7
7
****************
8
8
9
9
While pandas provides a rich set of methods, containers, and data types, your
@@ -12,7 +12,7 @@ pandas.
12
12
13
13
.. _extending.register-accessors:
14
14
15
-
Registering Custom Accessors
15
+
Registering custom accessors
16
16
----------------------------
17
17
18
18
Libraries can use the decorators
@@ -70,7 +70,7 @@ applies only to certain dtypes.
70
70
71
71
.. _extending.extension-types:
72
72
73
-
Extension Types
73
+
Extension types
74
74
---------------
75
75
76
76
.. versionadded:: 0.23.0
@@ -210,7 +210,7 @@ will
210
210
211
211
.. _extending.extension.testing:
212
212
213
-
Testing Extension Arrays
213
+
Testing extension arrays
214
214
^^^^^^^^^^^^^^^^^^^^^^^^
215
215
216
216
We provide a test suite for ensuring that your extension arrays satisfy the expected
@@ -238,7 +238,7 @@ for a list of all the tests available.
238
238
239
239
.. _extending.subclassing-pandas:
240
240
241
-
Subclassing pandas Data Structures
241
+
Subclassing pandas data structures
242
242
----------------------------------
243
243
244
244
.. warning:: There are some easier alternatives before considering subclassing ``pandas`` data structures.
@@ -260,7 +260,7 @@ This section describes how to subclass ``pandas`` data structures to meet more s
260
260
261
261
You can find a nice example in `geopandas <https://github.com/geopandas/geopandas>`_ project.
262
262
263
-
Override Constructor Properties
263
+
Override constructor properties
264
264
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
265
265
266
266
Each data structure has several *constructor properties* for returning a new
@@ -348,7 +348,7 @@ Below example shows how to define ``SubclassedSeries`` and ``SubclassedDataFrame
348
348
>>>type(sliced2)
349
349
<class'__main__.SubclassedSeries'>
350
350
351
-
Define Original Properties
351
+
Define original properties
352
352
^^^^^^^^^^^^^^^^^^^^^^^^^^
353
353
354
354
To let original data structures have additional properties, you should let ``pandas`` know what properties are added. ``pandas`` maps unknown properties to data names overriding ``__getattribute__``. Defining original properties can be done in one of 2 ways:
0 commit comments