d><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">offset_by</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">num</span><span class="p">,</span> <span class="n">unit</span><span class="p">):</span>

    <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    Functionally same as polars.Expr.dt.offset_by. However arguments are different.</span>

<span class="sd">    Args:</span>
<span class="sd">        num (in