def __delitem__(self, index):
        """
        Remove the ``sdict[sdict.iloc[index]]`` from *sdict*. Supports negative
        indices and slice notation. Raises IndexError on invalid *index*.
        """
        _dict = self._dict
        _list = _dict._list
        _delitem = _dict._delitem

        if isinstance(index, slice):
            keys = _list[index]
            del _list[index]
            for key in keys:
                _delitem(key)
        else:
            key = _list[index]
            del _list[index]
            _delitem(key)
def __delitem__ ( self , index ) : _dict = self . _dict _list = _dict . _list _delitem = _dict . _delitem if isinstance ( index , slice ) : keys = _list [ index ] del _list [ index ] for key in keys : _delitem ( key ) else : key = _list [ index ] del _list [ index ] _delitem ( key )
Remove the ``sdict[sdict.iloc[index]]`` from *sdict*. Supports negative
        indices and slice notation. Raises IndexError on invalid *index*.