def _filter_by_statement(self, statement):
self.__class__._check_conditional_statement(statement, <NUM_LIT:1>)<EOL>_filt_values, _filt_datetimes = [], []<EOL>for i, a in enumerate(self._values):<EOL><INDENT>if eval(statement, {'<STR_LIT:a>': a}):<EOL><INDENT>_filt_values.append(a)<EOL>_filt_datetimes.append(self.datetimes[i])<EOL><DEDENT><DEDENT>return _filt_values, _filt_datetimes<EOL>
Filter the data collection based on a conditional statement.