parameters: (self: FrameOrSeries, slobj: slice, axis=0, kind=None)
return_statement: return result
docstring: Construct a slice of this container.
  
          kind parameter is maintained for compatibility with Series slicing.
docstring_summary: Construct a slice of this container.
docstring_tokens: Construct a slice of this container .
function: def _slice(self: FrameOrSeries, slobj: slice, axis=0, kind=None) -> FrameOrSeries:
          """
          Construct a slice of this container.
  
          kind parameter is maintained for compatibility with Series slicing.
          """
          axis = self._get_block_manager_axis(axis)
          result = self._constructor(self._data.get_slice(slobj, axis=axis))
          result = result.__finalize__(self)
  
          # this could be a view
          # but only in a single-dtyped view sliceable case
          is_copy = axis != 0 or result._is_view
          result._set_is_copy(self, copy=is_copy)
          return result
function_tokens: def _slice ( self : FrameOrSeries , slobj : slice , axis = 0 , kind = None ) -> FrameOrSeries : axis = self . _get_block_manager_axis ( axis ) result = self . _constructor ( self . _data . get_slice ( slobj , axis = axis ) ) result = result . __finalize__ ( self ) # this could be a view # but only in a single-dtyped view sliceable case is_copy = axis != 0 or result . _is_view result . _set_is_copy ( self , copy = is_copy ) return result