docstr: Associates true values to each prediction that appears in train. For
  the nature of this association, see details in .clump.
  
  Parameters
  ----------
  df: pd.DataFrame
      Dataframe with columns 'y_true' and 'y_pred', of true and
      predicted values on the training set.
  min_bin_size
      Size of clumps to associate to each prediction in the set of
      predictions on the training set.
  
  Returns
  -------
  dict
      going from predictions from the set of predictions on the
      training set to lists of associated true values, with the length
      of each being at least min_bin_size.
docstr_tok: ["Associates","true","values","to","each","prediction","that","appears","in","train",".","For","the","nature","of","this","association",",","see","details","in",".clump",".","Parameters","--","--","--","--","--","df",":","pd.DataFrame","Dataframe","with","columns","'y_true","'","and","'y_pred","'",",","of","true","and","predicted","values","on","the","training","set",".","min_bin_size","Size","of","clumps","to","associate","to","each","prediction","in","the","set","of","predictions","on","the","training","set",".","Returns","--","--","--","-","dict","going","from","predictions","from","the","set","of","predictions","on","the","training","set","to","lists","of","associated","true","values",",","with","the","length","of","each","being","at","least","min_bin_size","."]
code: def preprocess_df(
      self, df: pd.DataFrame, min_bin_size: int = 100
  ) -> Dict:
      """
      Associates true values to each prediction that appears in train. For
      the nature of this association, see details in .clump.
  
      Parameters
      ----------
      df: pd.DataFrame
          Dataframe with columns 'y_true' and 'y_pred', of true and
          predicted values on the training set.
      min_bin_size
          Size of clumps to associate to each prediction in the set of
          predictions on the training set.
  
      Returns
      -------
      dict
          going from predictions from the set of predictions on the
          training set to lists of associated true values, with the length
          of each being at least min_bin_size.
      """
      dic = dict(df.groupby("y_pred")["y_true"].apply(list))
      dic = self.clump(dic, min_bin_size, self.sorted_train_preds)
      return dic
  
imports: from typing import Any, Dict, List, Optional, Union
  import copy
  import numpy
  import pandas
  import xgboost
  import gc
  from collections import defaultdict
  from gluonts.core.component import equals, validated
label_desc: Use image node_id 6 for calling the QRX obj's underlying member method code with example usage: obj.preprocess_df(df, min_bin_size) and returns: dic