@classmethod<EOL><INDENT>def _create_comparison_method(cls, op):<DEDENT>
def wrapper(self, other):<EOL><INDENT>if isinstance(other, ABCSeries):<EOL><INDENT>other = other._values<EOL><DEDENT>result = op(self._data, maybe_unwrap_index(other))<EOL>return result<EOL><DEDENT>wrapper.__doc__ = op.__doc__<EOL>wrapper.__name__ = '<STR_LIT>'.format(op.__name__)<EOL>return wrapper<EOL>
Create a comparison method that dispatches to ``cls.values``.