def convert(self, values, nan_rep, encoding, errors):
<EOL>if values.dtype.fields is not None:<EOL><INDENT>values = values[self.cname]<EOL><DEDENT>values = _maybe_convert(values, self.kind, encoding, errors)<EOL>kwargs = dict()<EOL>if self.freq is not None:<EOL><INDENT>kwargs['<STR_LIT>'] = _ensure_decoded(self.freq)<EOL><DEDENT>if self.index_name is not None:<EOL><INDENT>kwargs['<STR_LIT:name>'] = _ensure_decoded(self.index_name)<EOL><DEDENT>try:<EOL><INDENT>self.values = Index(values, **kwargs)<EOL><DEDENT>except Exception:  <EOL><INDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = None<EOL><DEDENT>self.values = Index(values, **kwargs)<EOL><DEDENT>self.values = _set_tz(self.values, self.tz)<EOL>return self<EOL>
set the values from this selection: take = take ownership