def _allow_na_ops(self, obj):
if (isinstance(obj, Index) and<EOL>(obj.is_boolean() or not obj._can_hold_na)):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Whether to skip test cases including NaN