code: def merge_batches(self, data):
  		
  		if isinstance(data[0], ssp.csr_matrix):  return ssp.vstack(data)
  		if isinstance(data[0], pd.DataFrame) or isinstance(data[0], pd.Series):  return pd.concat(data)
  		return [item for sublist in data for item in sublist]
docs: Merge a list of data minibatches into one single instance representing the data
  
  		Parameters
  		----------
  		data: list
  			List of minibatches to merge
  
  		Returns
  		-------
  		(anonymous): sparse matrix | pd.DataFrame | list
  			Single complete list-like data merged from given batches