<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def select(self, idx):
 """ Return a new DictArray containing only the indexed values """

        data = {}
        for k in self.data:
            data[k] = self.data[k][idx]
        return self._return(data=data)