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

Method from_blocks

pandas/core/internals/managers.py:2041–2051  ·  view source on GitHub ↗

Constructor for BlockManager and SingleBlockManager with same signature.

(
        cls,
        blocks: list[Block],
        axes: list[Index],
    )

Source from the content-addressed store, hash-verified

2039
2040 @classmethod
2041 def from_blocks(
2042 cls,
2043 blocks: list[Block],
2044 axes: list[Index],
2045 ) -> Self:
2046 """
2047 Constructor for BlockManager and SingleBlockManager with same signature.
2048 """
2049 assert len(blocks) == 1
2050 assert len(axes) == 1
2051 return cls(blocks[0], axes[0], verify_integrity=False)
2052
2053 @classmethod
2054 def from_array(

Callers

nothing calls this directly

Calls 1

clsFunction · 0.85

Tested by

no test coverage detected