We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d062d9e commit 14e09c4Copy full SHA for 14e09c4
pandas/core/generic.py
@@ -285,22 +285,6 @@ def _init_mgr(
285
mgr = mgr.astype(dtype=dtype)
286
return mgr
287
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
304
def _as_manager(self: NDFrameT, typ: str, copy: bool_t = True) -> NDFrameT:
305
"""
306
Private helper function to create a DataFrame with specific manager.
0 commit comments