MCPcopy
hub / github.com/pandas-dev/pandas / add_references

Method add_references

pandas/core/internals/managers.py:319–329  ·  view source on GitHub ↗

Adds the references from one manager to another. We assume that both managers have the same block structure.

(self, mgr: BaseBlockManager)

Source from the content-addressed store, hash-verified

317 return not self.blocks[blkno].refs.has_reference()
318
319 def add_references(self, mgr: BaseBlockManager) -> None:
320 """
321 Adds the references from one manager to another. We assume that both
322 managers have the same block structure.
323 """
324 if len(self.blocks) != len(mgr.blocks):
325 # If block structure changes, then we made a copy
326 return
327 for i, blk in enumerate(self.blocks):
328 blk.refs = mgr.blocks[i].refs
329 blk.refs.add_reference(blk)
330
331 def references_same_values(self, mgr: BaseBlockManager, blkno: int) -> bool:
332 """

Callers 5

_get_values_tupleMethod · 0.80
_get_valueMethod · 0.80
iterrowsMethod · 0.80
transposeMethod · 0.80
get_resultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected