Constructor for BlockManager and SingleBlockManager with same signature.
(
cls,
blocks: list[Block],
axes: list[Index],
)
| 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( |