def copy(self, file, mode='<STR_LIT:w>', propindexes=True, keys=None, complib=None,<EOL>complevel=None, fletcher32=False, overwrite=True):
new_store = HDFStore(<EOL>file,<EOL>mode=mode,<EOL>complib=complib,<EOL>complevel=complevel,<EOL>fletcher32=fletcher32)<EOL>if keys is None:<EOL><INDENT>keys = list(self.keys())<EOL><DEDENT>if not isinstance(keys, (tuple, list)):<EOL><INDENT>keys = [keys]<EOL><DEDENT>for k in keys:<EOL><INDENT>s = self.get_storer(k)<EOL>if s is not None:<EOL><INDENT>if k in new_store:<EOL><INDENT>if overwrite:<EOL><INDENT>new_store.remove(k)<EOL><DEDENT><DEDENT>data = self.select(k)<EOL>if s.is_table:<EOL><INDENT>index = False<EOL>if propindexes:<EOL><INDENT>index = [a.name for a in s.axes if a.is_indexed]<EOL><DEDENT>new_store.append(<EOL>k, data, index=index,<EOL>data_columns=getattr(s, '<STR_LIT>', None),<EOL>encoding=s.encoding<EOL>)<EOL><DEDENT>else:<EOL><INDENT>new_store.put(k, data, encoding=s.encoding)<EOL><DEDENT><DEDENT><DEDENT>return new_store<EOL>
copy the existing store to a new file, upgrading in place

            Parameters
            ----------
            propindexes: restore indexes in copied file (defaults to True)
            keys       : list of keys to include in the copy (defaults to all)
            overwrite  : overwrite (remove and replace) existing nodes in the
                new store (default is True)
            mode, complib, complevel, fletcher32 same as in HDFStore.__init__

            Returns
            -------
            open file handle of the new store