ails class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def n_es_genes(df: pd.DataFrame, 
                annotation: pd.Series,
                figsize: tuple=None) -&gt; p9.ggplot:
    &#34;&#34;&#34;Plot distribution of number of ES genes per group
    
    Computes the number of ES genes per column, e.g. cell(-type) 
    and plots the distribution for the groups specified
    by the annotation.
    
    Parameters
    ----------
    df : DataFrame
        Data