def _validate_float_format(self, name, val):
        if val == "":
            return
        try:
            val = val.rsplit('f')[0]
            assert str_types in type(val)
            assert "." in val
            bits = val.split(".")
            assert len(bits) <= 2
            assert bits[0] == "" or bits[0].isdigit()
            assert bits[1] == "" or bits[1].isdigit()
        except AssertionError:
            raise Exception("Invalid value for %s!  Must be a float format string." % name)
dataset/ETHPy150Open kxxoling/PTable/prettytable/prettytable.py/PrettyTable._validate_float_format/swapped operands of `in`