Skip to content

Commit

Permalink
CLN: move __finalize__ call into splitter (groupbt GH-45363 follow-up) (
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Jan 19, 2022
1 parent d062d9e commit 14e09c4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,22 +285,6 @@ def _init_mgr(
mgr = mgr.astype(dtype=dtype)
return mgr

@classmethod
def _from_mgr(cls, mgr: Manager):
"""
Fastpath to create a new DataFrame/Series from just a BlockManager/ArrayManager.
Notes
-----
Skips setting `_flags` attribute; caller is responsible for doing so.
"""
obj = cls.__new__(cls)
object.__setattr__(obj, "_is_copy", None)
object.__setattr__(obj, "_mgr", mgr)
object.__setattr__(obj, "_item_cache", {})
object.__setattr__(obj, "_attrs", {})
return obj

def _as_manager(self: NDFrameT, typ: str, copy: bool_t = True) -> NDFrameT:
"""
Private helper function to create a DataFrame with specific manager.
Expand Down

0 comments on commit 14e09c4

Please sign in to comment.