original_docstring: Splits clusters into completed and active parts.
          The group membership of active points may change when
          clustering the following chunk or with influx of new data.
  
          Args:
              chunk (dataframe): a clustered chunk with and 'group' columns.
  
          Returns:
              completed (dataframe): part of the chunk which is completed.
              active (dataframe): part of the chunk with points belonging to
              active clusters.
          
docstring: Splits clusters into completed and active parts.
  The group membership of active points may change when
  clustering the following chunk or with influx of new data.
docstring_tokens: Splits clusters into completed and active parts . The group membership of active points may change when clustering the following chunk or with influx of new data .
code: def split(self, chunk, end):
          """Splits clusters into completed and active parts.
          The group membership of active points may change when
          clustering the following chunk or with influx of new data.
  
          Args:
              chunk (dataframe): a clustered chunk with and 'group' columns.
  
          Returns:
              completed (dataframe): part of the chunk which is completed.
              active (dataframe): part of the chunk with points belonging to
              active clusters.
          """
          print('chunk', chunk.shape[0])
          print('end', end)
          edge = chunk[split_dimension].max()
          active_groups = chunk[(chunk[self.split_dimension] >=
                                 edge - self.edge_eps)]['group'].unique()
          active = chunk.loc[(chunk.group.isin(active_groups)), :].copy()
          print('active', active.shape[0])
          completed = chunk.loc[~(chunk.group.isin(active_groups)), :].copy()
          print('completed', completed.shape[0])
          return completed, active
code_tokens: def split ( self , chunk , end ) : print ( 'chunk' , chunk . shape [ 0 ] ) print ( 'end' , end ) edge = chunk [ split_dimension ] . max ( ) active_groups = chunk [ ( chunk [ self . split_dimension ] >= edge - self . edge_eps ) ] [ 'group' ] . unique ( ) active = chunk . loc [ ( chunk . group . isin ( active_groups ) ) , : ] . copy ( ) print ( 'active' , active . shape [ 0 ] ) completed = chunk . loc [ ~ ( chunk . group . isin ( active_groups ) ) , : ] . copy ( ) print ( 'completed' , completed . shape [ 0 ] ) return completed , active
short_docstring: Splits clusters into completed and active parts.
short_docstring_tokens: Splits clusters into completed and active parts .
comment: """Splits clusters into completed and active parts.
          The group membership of active points may change when
          clustering the following chunk or with influx of new data.
  
          Args:
              chunk (dataframe): a clustered chunk with and 'group' columns.
  
          Returns:
              completed (dataframe): part of the chunk which is completed.
              active (dataframe): part of the chunk with points belonging to
              active clusters.
          """