Skip to content

Commit

Permalink
build based on 7856226
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Aug 13, 2024
1 parent af26b71 commit 16db890
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
16 changes: 8 additions & 8 deletions latest/examples/generated/UserGuide/ibis_comp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ <h2 id="selecting-columns">Selecting columns<a class="headerlink" href="#selecti
</code></pre></div>
<p>TidierDB does not require names to be prefixed and, like TidierData, tidy column selection with <code>starts_with</code>, <code>ends_with</code>, and <code>contains</code> is supported at base. TidierDB also supports providing column names as strings, although this would only be needed in the setting of renaming a column with a space in it.</p>
<p>TidierDB</p>
<div class="highlight"><pre><span></span><code>@chain t(mtcars) @select(starts_with(&quot;m&quot;), &quot;drat&quot;, wt) @collect
<div class="highlight"><pre><span></span><code><span class="nd">@chain</span><span class="w"> </span><span class="n">t</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="nd">@select</span><span class="p">(</span><span class="n">starts_with</span><span class="p">(</span><span class="s">&quot;m&quot;</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;drat&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">wt</span><span class="p">)</span><span class="w"> </span><span class="nd">@collect</span>
</code></pre></div>
<div class="highlight"><pre><span></span><code>32×4 DataFrame
Row │ model mpg drat wt
Expand Down Expand Up @@ -1019,13 +1019,13 @@ <h2 id="multi-step-queries-and-summarizing">Multi step queries and summarizing<a
</code></pre></div>
<p>In TidierDB, <code>@filter</code> will automatically determine whether the criteria belong in a <code>WHERE</code> or <code>HAVING</code> SQL clause.</p>
<p>TidierDB</p>
<div class="highlight"><pre><span></span><code>@chain t(mtcars) begin
@group_by(cyl)
@summarize(total_hp = sum(hp),
avg_hp = avg(hp))
@filter(total_hp &lt; 1000)
@collect
end
<div class="highlight"><pre><span></span><code><span class="nd">@chain</span><span class="w"> </span><span class="n">t</span><span class="p">(</span><span class="n">mtcars</span><span class="p">)</span><span class="w"> </span><span class="k">begin</span>
<span class="w"> </span><span class="nd">@group_by</span><span class="p">(</span><span class="n">cyl</span><span class="p">)</span>
<span class="w"> </span><span class="nd">@summarize</span><span class="p">(</span><span class="n">total_hp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sum</span><span class="p">(</span><span class="n">hp</span><span class="p">),</span>
<span class="w"> </span><span class="n">avg_hp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">avg</span><span class="p">(</span><span class="n">hp</span><span class="p">))</span>
<span class="w"> </span><span class="nd">@filter</span><span class="p">(</span><span class="n">total_hp</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">1000</span><span class="p">)</span>
<span class="w"> </span><span class="nd">@collect</span>
<span class="k">end</span>
</code></pre></div>
<div class="highlight"><pre><span></span><code>2×3 DataFrame
Row │ cyl total_hp avg_hp
Expand Down
Loading

0 comments on commit 16db890

Please sign in to comment.