Skip to content

Commit 14e09c4

Browse files
CLN: move __finalize__ call into splitter (groupbt GH-45363 follow-up) (#45415)
1 parent d062d9e commit 14e09c4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pandas/core/generic.py

-16
Original file line numberDiff line numberDiff line change
@@ -285,22 +285,6 @@ def _init_mgr(
285285
mgr = mgr.astype(dtype=dtype)
286286
return mgr
287287

288-
@classmethod
289-
def _from_mgr(cls, mgr: Manager):
290-
"""
291-
Fastpath to create a new DataFrame/Series from just a BlockManager/ArrayManager.
292-
293-
Notes
294-
-----
295-
Skips setting `_flags` attribute; caller is responsible for doing so.
296-
"""
297-
obj = cls.__new__(cls)
298-
object.__setattr__(obj, "_is_copy", None)
299-
object.__setattr__(obj, "_mgr", mgr)
300-
object.__setattr__(obj, "_item_cache", {})
301-
object.__setattr__(obj, "_attrs", {})
302-
return obj
303-
304288
def _as_manager(self: NDFrameT, typ: str, copy: bool_t = True) -> NDFrameT:
305289
"""
306290
Private helper function to create a DataFrame with specific manager.

0 commit comments

Comments
 (0)