def _init_mgr(self, mgr, axes=None, dtype=None, copy=False):
for a, axe in axes.items():<EOL><INDENT>if axe is not None:<EOL><INDENT>mgr = mgr.reindex_axis(axe,<EOL>axis=self._get_block_manager_axis(a),<EOL>copy=False)<EOL><DEDENT><DEDENT>if copy:<EOL><INDENT>mgr = mgr.copy()<EOL><DEDENT>if dtype is not None:<EOL><INDENT>if len(mgr.blocks) > <NUM_LIT:1> or mgr.blocks[<NUM_LIT:0>].values.dtype != dtype:<EOL><INDENT>mgr = mgr.astype(dtype=dtype)<EOL><DEDENT><DEDENT>return mgr<EOL>
passed a manager and a axes dict