class_docstr: Apply Python slice object to Polars DataFrame or Series.
  
  Has full support for negative indexing and/or stride.
docstr: Logic for slices with negative stride.
docstr_tok: ["Logic","for","slices","with","negative","stride","."]
code: def _slice_negative(self, obj: LazyFrame) -> LazyFrame:
      """Logic for slices with negative stride."""
      stride = abs(self.stride)
      lazyslice = obj.slice(self.stop + 1, self.slice_length).reverse()
      return (
          lazyslice.gather_every(stride) if (stride > 1) else lazyslice
      )
  
file_path: polars/py-polars/polars/slice.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Union
  import polars._reexport
label_desc: Use image node_id 5 for calling the PolarsSlice obj's underlying member method code with example usage: obj._slice_negative(obj) and returns: unknown