def condense(self):
for pseudo_key, rows in self._rows.items():<EOL><INDENT>tmp1 = []<EOL>intervals = sorted(self._derive_distinct_intervals(rows))<EOL>for interval in intervals:<EOL><INDENT>tmp2 = dict(zip(self._pseudo_key, pseudo_key))<EOL>tmp2[self._key_start_date] = interval[<NUM_LIT:0>]<EOL>tmp2[self._key_end_date] = interval[<NUM_LIT:1>]<EOL>tmp1.append(tmp2)<EOL><DEDENT>self._rows[pseudo_key] = tmp1<EOL><DEDENT>
Condense the data set to the distinct intervals based on the pseudo key.