><span class="n">format</span><span class="p">(</span><span class="n">num</span><span class="p">,</span> <span class="n">mapping</span><span class="p">[</span><span class="n">unit</span><span class="p">])))</span>
    <span class="k">else</span><span class="p">:</span>
        <span class="k">raise</span> <span class="ne">Exception</span><span class="p">(</span><span class="s2">&quot;num must be an int or float. Offseting by a column is not supported yet&quot;</span><span class="p">)</span>
</code></pre></d