def to_dict(self, copy=True):
self._consolidate_inplace()<EOL>bd = {}<EOL>for b in self.blocks:<EOL><INDENT>bd.setdefault(str(b.dtype), []).append(b)<EOL><DEDENT>return {dtype: self.combine(blocks, copy=copy)<EOL>for dtype, blocks in bd.items()}<EOL>
Return a dict of str(dtype) -> BlockManager

Parameters
----------
copy : boolean, default True

Returns
-------
values : a dict of dtype -> BlockManager

Notes
-----
This consolidates based on str(dtype)