def _slice(self, slobj, axis=0, kind=None):
    '\n        Construct a slice of this container.\n\n        kind parameter is maintained for compatibility with Series slicing.\n        '
    axis = self._get_block_manager_axis(axis)
    result = self._constructor(self._data.get_slice(slobj, axis=axis))
    result = result.__finalize__(self)
    is_copy = ((axis != 0) or result._is_view)
    result._set_is_copy(self, copy=is_copy)
    return result
Construct a slice of this container.

kind parameter is maintained for compatibility with Series slicing.
def _slice(self, slobj, axis=0, kind=None):
    '\n        Construct a slice of this container.\n\n        kind parameter is maintained for compatibility with Series slicing.\n        '
    axis = self._get_block_manager_axis(axis)
    result = self._constructor(self._data.get_slice(slobj, axis=axis))
    result = result.__finalize__(self)
    is_copy = ((axis != 0) or result._is_view)
    result._set_is_copy(self, copy=is_copy)
    return result