Construct a slice of this container. Slicing with this method is *always* positional.
(self, slobj: slice, axis: AxisInt = 0)
| 4294 | return self._slice(slobj) |
| 4295 | |
| 4296 | def _slice(self, slobj: slice, axis: AxisInt = 0) -> Self: |
| 4297 | """ |
| 4298 | Construct a slice of this container. |
| 4299 | |
| 4300 | Slicing with this method is *always* positional. |
| 4301 | """ |
| 4302 | assert isinstance(slobj, slice), type(slobj) |
| 4303 | axis = self._get_block_manager_axis(axis) |
| 4304 | new_mgr = self._mgr.get_slice(slobj, axis=axis) |
| 4305 | result = self._constructor_from_mgr(new_mgr, axes=new_mgr.axes) |
| 4306 | result = result.__finalize__(self) |
| 4307 | return result |
| 4308 | |
| 4309 | @final |
| 4310 | def __delitem__(self, key) -> None: |
no test coverage detected