MCPcopy
hub / github.com/pandas-dev/pandas / _setitem_slice

Method _setitem_slice

pandas/core/frame.py:4674–4678  ·  view source on GitHub ↗
(self, key: slice, value)

Source from the content-addressed store, hash-verified

4672 self._set_item(key, value)
4673
4674 def _setitem_slice(self, key: slice, value) -> None:
4675 # NB: we can't just use self.loc[key] = value because that
4676 # operates on labels and we need to operate positional for
4677 # backwards-compat, xref GH#31469
4678 self.iloc[key] = value
4679
4680 def _setitem_array(self, key, value) -> None:
4681 # also raises Exception if object array with NA values

Callers 1

__setitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected