ion    es_weight
    # 1 POMC      ABC           0.0
    # 2 AGRP      ABC           0.6
    # 3 LEPR      ABC           1.0      
    df_tidy = df.copy()
    df_tidy.index.name = None
    df_tidy = pd.melt(df_tidy.reset_index(), id_vars=&#34;index&#34;, var_name=&#34;annotation&#34;, value_name=&#34;count&#34;)
    
    ### Compute the mean count of ES genes
    mean_count = df_tidy[&#34;count&#34;].mean(axis=0)
    
    ### Plot
    p = (
        ### data
        p9.ggplot(data=df_tidy, 
                 