pandas.DataFrame.as_blocks

DataFrame.as_blocks(self, copy=True)[source]

Convert the frame to a dict of dtype -> Constructor Types that each has a homogeneous dtype.

Deprecated since version 0.21.0.

NOTE: the dtypes of the blocks WILL BE PRESERVED HERE (unlike in

as_matrix)

Parameters
copyboolean, default True
Returns
valuesa dict of dtype -> Constructor Types
Scroll To Top