def take(self, indexer, axis=<NUM_LIT:1>, verify=True, convert=True):
self._consolidate_inplace()<EOL>indexer = (np.arange(indexer.start, indexer.stop, indexer.step,<EOL>dtype='<STR_LIT>')<EOL>if isinstance(indexer, slice)<EOL>else np.asanyarray(indexer, dtype='<STR_LIT>'))<EOL>n = self.shape[axis]<EOL>if convert:<EOL><INDENT>indexer = maybe_convert_indices(indexer, n)<EOL><DEDENT>if verify:<EOL><INDENT>if ((indexer == -<NUM_LIT:1>) | (indexer >= n)).any():<EOL><INDENT>raise Exception('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT><DEDENT>new_labels = self.axes[axis].take(indexer)<EOL>return self.reindex_indexer(new_axis=new_labels, indexer=indexer,<EOL>axis=axis, allow_dups=True)<EOL>
Take items along any axis.