python/ray/data/impl/block_list.py
def divide(self, block_idx: int) -> ("BlockList", "BlockList"):
        """Divide into two BlockLists by the given block index.

        Args:
            block_idx: The block index to divide at.
        """
        self._check_if_cleared()
        return (
            BlockList(self._blocks[:block_idx], self._metadata[:block_idx]),
            BlockList(self._blocks[block_idx:], self._metadata[block_idx:]),
        )
Divide into two BlockLists by the given block index.

        Args:
            block_idx: The block index to divide at.
        
Divide into two BlockLists by the given block index.
Divide into two BlockLists by the given block index .
def divide(self, block_idx: int) -> ("BlockList", "BlockList"):
        self._check_if_cleared()
        return (
            BlockList(self._blocks[:block_idx], self._metadata[:block_idx]),
            BlockList(self._blocks[block_idx:], self._metadata[block_idx:]),
        )
def divide ( self , block_idx : int ) -> ( "BlockList" , "BlockList" ) : self . _check_if_cleared ( ) return ( BlockList ( self . _blocks [ : block_idx ] , self . _metadata [ : block_idx ] ) , BlockList ( self . _blocks [ block_idx : ] , self . _metadata [ block_idx : ] ) , )
Divide into two BlockLists by the given block index.
Divide into two BlockLists by the given block index .
"""Divide into two BlockLists by the given block index.

        Args:
            block_idx: The block index to divide at.
        """
self
block_idx
int
The block index to divide at.
The block index to divide at .