

def _validate_indexer(self, form, key, kind):
    '\n        if we are positional indexer\n        validate that we have appropriate typed bounds\n        must be an integer\n        '
    assert (kind in ['ix', 'loc', 'getitem', 'iloc'])
    if (key is None):
        pass
    elif is_integer(key):
        pass
    elif (kind in ['iloc', 'getitem']):
        self._invalid_indexer(key, key)
    return key

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._validate_indexer/VarMisuse@73/138 `form`->`key`