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
+1-1
Original file line number
Diff line number
Diff line change
@@ -331,7 +331,7 @@ you can retain subclasses through ``pandas`` data manipulations.
331
331
332
332
There are 3 possible constructor properties to be defined on a subclass:
333
333
334
-
* ``DataFrame/Series._constructor``: Used when a manipulation result has the same (sub-)class as the original.
334
+
* ``DataFrame/Series._constructor``: Used when a manipulation result has the same dimension as the original.
335
335
* ``DataFrame._constructor_sliced``: Used when a ``DataFrame`` (sub-)class manipulation result should be a ``Series`` (sub-)class.
336
336
* ``Series._constructor_expanddim``: Used when a ``Series`` (sub-)class manipulation result should be a ``DataFrame`` (sub-)class, e.g. ``Series.to_frame()``.
0 commit comments