fips.MatrixBlock.to_frame#

MatrixBlock.to_frame(add_block_level=False)[source]#

Convert to DataFrame with optional block level.

Parameters:

add_block_level (bool, default False) – Whether to add ‘block’ levels to the index and columns for the row and column blocks.

Returns:

The DataFrame representation of the block, with optional block levels in the index and columns.

Return type:

pd.DataFrame