@staticmethod
def _location(name, container, value):
    """Find location for index/column value."""
    if isinstance(value, int):
        if value in container:
            location = container.index(value)
        elif value < 0:
            location = value + len(container)
        else:
            location = value
        if location > len(container):
            raise IndexError(f'{name.title()} out of of range')
    else:
        try:
            location = container.index(str(value))
        except ValueError:
            raise ValueError(f'Unknown {name} name: {value}')
    return location
