def _convert_for_reindex(self, key, axis=None):
if axis is None:<EOL><INDENT>axis = self.axis or <NUM_LIT:0><EOL><DEDENT>labels = self.obj._get_axis(axis)<EOL>if com.is_bool_indexer(key):<EOL><INDENT>key = check_bool_indexer(labels, key)<EOL>return labels[key]<EOL><DEDENT>if isinstance(key, Index):<EOL><INDENT>keyarr = labels._convert_index_indexer(key)<EOL><DEDENT>else:<EOL><INDENT>keyarr = com.asarray_tuplesafe(key)<EOL><DEDENT>if is_integer_dtype(keyarr):<EOL><INDENT>keyarr = labels._convert_arr_indexer(keyarr)<EOL>if not labels.is_integer():<EOL><INDENT>keyarr = ensure_platform_int(keyarr)<EOL>return labels.take(keyarr)<EOL><DEDENT><DEDENT>return keyarr<EOL>
Transform a list of keys into a new array ready to be used as axis of
the object we return (e.g. including NaNs).

Parameters
----------
key : list-like
    Target labels
axis: int
    Where the indexing is being made

Returns
-------
list-like of labels