code: def enrichment(dfenr, level=None):
      
      df = dfenr.sort_index(level=("Group", "Replicate","Timepoint","Technical" ), axis=1)
  
      if level:
          axes = df.mul(100).T.boxplot(by=level)
      else:
          colors = np.array((1 - df.T.values[:, 0], df.T.values[:, 0], [0] * len(df.T.values))).T.tolist()
          colors = [[tuple(i) for i in colors]]
          df = df.mul(100)
          axes = df.T.plot(kind="bar", figsize=(len(df.T) * 0.2, 10), color=colors)
          axes.legend_.remove()
  
      axes.set_ylim(0, 100)
      axes.set_ylabel("% enrichment")
      axes.set_title("")
  
      return axes
docs: Generates an enrichment pie chart series from a calculate enrichment table
      :param dfenr: dataframe with enrichments
      :param level: the level to ungroup the
      :return: