python/ray/data/impl/block_list.py
def split(self, split_size: int) -> List["BlockList"]:
        """Split this BlockList into multiple lists.

        Args:
            split_size: The number of lists to split into.
        """
        self._check_if_cleared()
        num_splits = math.ceil(len(self._blocks) / split_size)
        blocks = np.array_split(self._blocks, num_splits)
        meta = np.array_split(self._metadata, num_splits)
        output = []
        for b, m in zip(blocks, meta):
            output.append(BlockList(b.tolist(), m.tolist()))
        return output
Split this BlockList into multiple lists.

        Args:
            split_size: The number of lists to split into.
        
Split this BlockList into multiple lists.
Split this BlockList into multiple lists .
def split(self, split_size: int) -> List["BlockList"]:
        self._check_if_cleared()
        num_splits = math.ceil(len(self._blocks) / split_size)
        blocks = np.array_split(self._blocks, num_splits)
        meta = np.array_split(self._metadata, num_splits)
        output = []
        for b, m in zip(blocks, meta):
            output.append(BlockList(b.tolist(), m.tolist()))
        return output
def split ( self , split_size : int ) -> List [ "BlockList" ] : self . _check_if_cleared ( ) num_splits = math . ceil ( len ( self . _blocks ) / split_size ) blocks = np . array_split ( self . _blocks , num_splits ) meta = np . array_split ( self . _metadata , num_splits ) output = [ ] for b , m in zip ( blocks , meta ) : output . append ( BlockList ( b . tolist ( ) , m . tolist ( ) ) ) return output
Split this BlockList into multiple lists.
Split this BlockList into multiple lists .
"""Split this BlockList into multiple lists.

        Args:
            split_size: The number of lists to split into.
        """
self
split_size
int
The number of lists to split into.
The number of lists to split into .