def _validate_rfilter(self, rfilter, letter="<STR_LIT:d>"):
if letter == "<STR_LIT:d>":<EOL><INDENT>pexdoc.exh.addai(<EOL>"<STR_LIT>",<EOL>(<EOL>(not self._has_header)<EOL>and any([not isinstance(item, int) for item in rfilter.keys()])<EOL>),<EOL>)<EOL><DEDENT>else:<EOL><INDENT>pexdoc.exh.addai(<EOL>"<STR_LIT>",<EOL>(<EOL>(not self._has_header)<EOL>and any([not isinstance(item, int) for item in rfilter.keys()])<EOL>),<EOL>)<EOL><DEDENT>for key in rfilter:<EOL><INDENT>self._in_header(key)<EOL>rfilter[key] = (<EOL>[rfilter[key]] if isinstance(rfilter[key], str) else rfilter[key]<EOL>)<EOL><DEDENT>
Validate that all columns in filter are in header.