docs/test_boxplot.html
<div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">altair_recipes</span> <span class="kn">as</span> <span class="nn">ar</span>
<span class="kn">from</span> <span class="nn">altair_recipes.common</span> <span class="kn">import</span> <span class="n">viz_reg_test</span>
<span class="kn">from</span> <span class="nn">altair_recipes.display_pweave</span> <span class="kn">import</span> <span class="n">show_test</span>
<span class="kn">from</span> <span class="nn">vega_datasets</span> <span class="kn">import</span> <span class="n">data</span>
</pre></div>
<h2>Boxplot from melted data</h2>
<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_boxplot_melted</span><span class="p">():</span>
<span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">boxplot</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">(),</span> <span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s2">"petalLength"</span><span class="p">],</span> <span class="n">group_by</span><span class="o">=</span><span class="s2">"species"</span><span class="p">)</span>
<span class="n">show_test</span><span class="p">(</span><span class="n">test_boxplot_melted</span><span class="p">)</span>
</pre></div>
<script src="https://cdn.jsdelivr.net/npm/vega@3"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@2"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@3"></script>
<div id="Acd7df3404c9b34535dca362f7f433917beac586aded57d4e1ed370413d482bad"></div>
<script type="text/javascript">
var spec = {
"$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
"config": {
"view": {
"continuousHeight": 300,
"continuousWidth": 400
}
},
"data": {
"name": "data-a264acbd6e539a8b3afc0cb5f240fb57"
},
"datasets": {
"data-a264acbd6e539a8b3afc0cb5f240fb57": [
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 5.1,
"sepalWidth": 3.5,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 4.9,
"sepalWidth": 3.0,
"species": "setosa"
},
{
"petalLength": 1.3,
"petalWidth": 0.2,
"sepalLength": 4.7,
"sepalWidth": 3.2,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.2,
"sepalLength": 4.6,
"sepalWidth": 3.1,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 5.0,
"sepalWidth": 3.6,
"species": "setosa"
},
{
"petalLength": 1.7000000000000002,
"petalWidth": 0.4,
"sepalLength": 5.4,
"sepalWidth": 3.9,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.30000000000000004,
"sepalLength": 4.6,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.2,
"sepalLength": 5.0,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 4.4,
"sepalWidth": 2.9,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.1,
"sepalLength": 4.9,
"sepalWidth": 3.1,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.2,
"sepalLength": 5.4,
"sepalWidth": 3.7,
"species": "setosa"
},
{
"petalLength": 1.6,
"petalWidth": 0.2,
"sepalLength": 4.8,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.1,
"sepalLength": 4.8,
"sepalWidth": 3.0,
"species": "setosa"
},
{
"petalLength": 1.1,
"petalWidth": 0.1,
"sepalLength": 4.3,
"sepalWidth": 3.0,
"species": "setosa"
},
{
"petalLength": 1.2,
"petalWidth": 0.2,
"sepalLength": 5.8,
"sepalWidth": 4.0,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.4,
"sepalLength": 5.7,
"sepalWidth": 4.4,
"species": "setosa"
},
{
"petalLength": 1.3,
"petalWidth": 0.4,
"sepalLength": 5.4,
"sepalWidth": 3.9,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.30000000000000004,
"sepalLength": 5.1,
"sepalWidth": 3.5,
"species": "setosa"
},
{
"petalLength": 1.7000000000000002,
"petalWidth": 0.30000000000000004,
"sepalLength": 5.7,
"sepalWidth": 3.8,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.30000000000000004,
"sepalLength": 5.1,
"sepalWidth": 3.8,
"species": "setosa"
},
{
"petalLength": 1.7000000000000002,
"petalWidth": 0.2,
"sepalLength": 5.4,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.4,
"sepalLength": 5.1,
"sepalWidth": 3.7,
"species": "setosa"
},
{
"petalLength": 1.0,
"petalWidth": 0.2,
"sepalLength": 4.6,
"sepalWidth": 3.6,
"species": "setosa"
},
{
"petalLength": 1.7000000000000002,
"petalWidth": 0.5,
"sepalLength": 5.1,
"sepalWidth": 3.3,
"species": "setosa"
},
{
"petalLength": 1.9,
"petalWidth": 0.2,
"sepalLength": 4.8,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.6,
"petalWidth": 0.2,
"sepalLength": 5.0,
"sepalWidth": 3.0,
"species": "setosa"
},
{
"petalLength": 1.6,
"petalWidth": 0.4,
"sepalLength": 5.0,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.2,
"sepalLength": 5.2,
"sepalWidth": 3.5,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 5.2,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.6,
"petalWidth": 0.2,
"sepalLength": 4.7,
"sepalWidth": 3.2,
"species": "setosa"
},
{
"petalLength": 1.6,
"petalWidth": 0.2,
"sepalLength": 4.8,
"sepalWidth": 3.1,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.4,
"sepalLength": 5.4,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.1,
"sepalLength": 5.2,
"sepalWidth": 4.1,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 5.5,
"sepalWidth": 4.2,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.2,
"sepalLength": 4.9,
"sepalWidth": 3.1,
"species": "setosa"
},
{
"petalLength": 1.2,
"petalWidth": 0.2,
"sepalLength": 5.0,
"sepalWidth": 3.2,
"species": "setosa"
},
{
"petalLength": 1.3,
"petalWidth": 0.2,
"sepalLength": 5.5,
"sepalWidth": 3.5,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.1,
"sepalLength": 4.9,
"sepalWidth": 3.6,
"species": "setosa"
},
{
"petalLength": 1.3,
"petalWidth": 0.2,
"sepalLength": 4.4,
"sepalWidth": 3.0,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.2,
"sepalLength": 5.1,
"sepalWidth": 3.4,
"species": "setosa"
},
{
"petalLength": 1.3,
"petalWidth": 0.30000000000000004,
"sepalLength": 5.0,
"sepalWidth": 3.5,
"species": "setosa"
},
{
"petalLength": 1.3,
"petalWidth": 0.30000000000000004,
"sepalLength": 4.5,
"sepalWidth": 2.3,
"species": "setosa"
},
{
"petalLength": 1.3,
"petalWidth": 0.2,
"sepalLength": 4.4,
"sepalWidth": 3.2,
"species": "setosa"
},
{
"petalLength": 1.6,
"petalWidth": 0.6000000000000001,
"sepalLength": 5.0,
"sepalWidth": 3.5,
"species": "setosa"
},
{
"petalLength": 1.9,
"petalWidth": 0.4,
"sepalLength": 5.1,
"sepalWidth": 3.8,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.30000000000000004,
"sepalLength": 4.8,
"sepalWidth": 3.0,
"species": "setosa"
},
{
"petalLength": 1.6,
"petalWidth": 0.2,
"sepalLength": 5.1,
"sepalWidth": 3.8,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 4.6,
"sepalWidth": 3.2,
"species": "setosa"
},
{
"petalLength": 1.5,
"petalWidth": 0.2,
"sepalLength": 5.3,
"sepalWidth": 3.7,
"species": "setosa"
},
{
"petalLength": 1.4,
"petalWidth": 0.2,
"sepalLength": 5.0,
"sepalWidth": 3.3,
"species": "setosa"
},
{
"petalLength": 4.7,
"petalWidth": 1.4,
"sepalLength": 7.0,
"sepalWidth": 3.2,
"species": "versicolor"
},
{
"petalLength": 4.5,
"petalWidth": 1.5,
"sepalLength": 6.4,
"sepalWidth": 3.2,
"species": "versicolor"
},
{
"petalLength": 4.9,
"petalWidth": 1.5,
"sepalLength": 6.9,
"sepalWidth": 3.1,
"species": "versicolor"
},
{
"petalLength": 4.0,
"petalWidth": 1.3,
"sepalLength": 5.5,
"sepalWidth": 2.3,
"species": "versicolor"
},
{
"petalLength": 4.6,
"petalWidth": 1.5,
"sepalLength": 6.5,
"sepalWidth": 2.8,
"species": "versicolor"
},
{
"petalLength": 4.5,
"petalWidth": 1.3,
"sepalLength": 5.7,
"sepalWidth": 2.8,
"species": "versicolor"
},
{
"petalLength": 4.7,
"petalWidth": 1.6,
"sepalLength": 6.3,
"sepalWidth": 3.3,
"species": "versicolor"
},
{
"petalLength": 3.3,
"petalWidth": 1.0,
"sepalLength": 4.9,
"sepalWidth": 2.4,
"species": "versicolor"
},
{
"petalLength": 4.6,
"petalWidth": 1.3,
"sepalLength": 6.6,
"sepalWidth": 2.9,
"species": "versicolor"
},
{
"petalLength": 3.9,
"petalWidth": 1.4,
"sepalLength": 5.2,
"sepalWidth": 2.7,
"species": "versicolor"
},
{
"petalLength": 3.5,
"petalWidth": 1.0,
"sepalLength": 5.0,
"sepalWidth": 2.0,
"species": "versicolor"
},
{
"petalLength": 4.2,
"petalWidth": 1.5,
"sepalLength": 5.9,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.0,
"petalWidth": 1.0,
"sepalLength": 6.0,
"sepalWidth": 2.2,
"species": "versicolor"
},
{
"petalLength": 4.7,
"petalWidth": 1.4,
"sepalLength": 6.1,
"sepalWidth": 2.9,
"species": "versicolor"
},
{
"petalLength": 3.6,
"petalWidth": 1.3,
"sepalLength": 5.6,
"sepalWidth": 2.9,
"species": "versicolor"
},
{
"petalLength": 4.4,
"petalWidth": 1.4,
"sepalLength": 6.7,
"sepalWidth": 3.1,
"species": "versicolor"
},
{
"petalLength": 4.5,
"petalWidth": 1.5,
"sepalLength": 5.6,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.1,
"petalWidth": 1.0,
"sepalLength": 5.8,
"sepalWidth": 2.7,
"species": "versicolor"
},
{
"petalLength": 4.5,
"petalWidth": 1.5,
"sepalLength": 6.2,
"sepalWidth": 2.2,
"species": "versicolor"
},
{
"petalLength": 3.9,
"petalWidth": 1.1,
"sepalLength": 5.6,
"sepalWidth": 2.5,
"species": "versicolor"
},
{
"petalLength": 4.8,
"petalWidth": 1.8,
"sepalLength": 5.9,
"sepalWidth": 3.2,
"species": "versicolor"
},
{
"petalLength": 4.0,
"petalWidth": 1.3,
"sepalLength": 6.1,
"sepalWidth": 2.8,
"species": "versicolor"
},
{
"petalLength": 4.9,
"petalWidth": 1.5,
"sepalLength": 6.3,
"sepalWidth": 2.5,
"species": "versicolor"
},
{
"petalLength": 4.7,
"petalWidth": 1.2,
"sepalLength": 6.1,
"sepalWidth": 2.8,
"species": "versicolor"
},
{
"petalLength": 4.3,
"petalWidth": 1.3,
"sepalLength": 6.4,
"sepalWidth": 2.9,
"species": "versicolor"
},
{
"petalLength": 4.4,
"petalWidth": 1.4,
"sepalLength": 6.6,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.8,
"petalWidth": 1.4,
"sepalLength": 6.8,
"sepalWidth": 2.8,
"species": "versicolor"
},
{
"petalLength": 5.0,
"petalWidth": 1.7000000000000002,
"sepalLength": 6.7,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.5,
"petalWidth": 1.5,
"sepalLength": 6.0,
"sepalWidth": 2.9,
"species": "versicolor"
},
{
"petalLength": 3.5,
"petalWidth": 1.0,
"sepalLength": 5.7,
"sepalWidth": 2.6,
"species": "versicolor"
},
{
"petalLength": 3.8,
"petalWidth": 1.1,
"sepalLength": 5.5,
"sepalWidth": 2.4,
"species": "versicolor"
},
{
"petalLength": 3.7,
"petalWidth": 1.0,
"sepalLength": 5.5,
"sepalWidth": 2.4,
"species": "versicolor"
},
{
"petalLength": 3.9,
"petalWidth": 1.2,
"sepalLength": 5.8,
"sepalWidth": 2.7,
"species": "versicolor"
},
{
"petalLength": 5.1,
"petalWidth": 1.6,
"sepalLength": 6.0,
"sepalWidth": 2.7,
"species": "versicolor"
},
{
"petalLength": 4.5,
"petalWidth": 1.5,
"sepalLength": 5.4,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.5,
"petalWidth": 1.6,
"sepalLength": 6.0,
"sepalWidth": 3.4,
"species": "versicolor"
},
{
"petalLength": 4.7,
"petalWidth": 1.5,
"sepalLength": 6.7,
"sepalWidth": 3.1,
"species": "versicolor"
},
{
"petalLength": 4.4,
"petalWidth": 1.3,
"sepalLength": 6.3,
"sepalWidth": 2.3,
"species": "versicolor"
},
{
"petalLength": 4.1,
"petalWidth": 1.3,
"sepalLength": 5.6,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.0,
"petalWidth": 1.3,
"sepalLength": 5.5,
"sepalWidth": 2.5,
"species": "versicolor"
},
{
"petalLength": 4.4,
"petalWidth": 1.2,
"sepalLength": 5.5,
"sepalWidth": 2.6,
"species": "versicolor"
},
{
"petalLength": 4.6,
"petalWidth": 1.4,
"sepalLength": 6.1,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.0,
"petalWidth": 1.2,
"sepalLength": 5.8,
"sepalWidth": 2.6,
"species": "versicolor"
},
{
"petalLength": 3.3,
"petalWidth": 1.0,
"sepalLength": 5.0,
"sepalWidth": 2.3,
"species": "versicolor"
},
{
"petalLength": 4.2,
"petalWidth": 1.3,
"sepalLength": 5.6,
"sepalWidth": 2.7,
"species": "versicolor"
},
{
"petalLength": 4.2,
"petalWidth": 1.2,
"sepalLength": 5.7,
"sepalWidth": 3.0,
"species": "versicolor"
},
{
"petalLength": 4.2,
"petalWidth": 1.3,
"sepalLength": 5.7,
"sepalWidth": 2.9,
"species": "versicolor"
},
{
"petalLength": 4.3,
"petalWidth": 1.3,
"sepalLength": 6.2,
"sepalWidth": 2.9,
"species": "versicolor"
},
{
"petalLength": 3.0,
"petalWidth": 1.1,
"sepalLength": 5.1,
"sepalWidth": 2.5,
"species": "versicolor"
},
{
"petalLength": 4.1,
"petalWidth": 1.3,
"sepalLength": 5.7,
"sepalWidth": 2.8,
"species": "versicolor"
},
{
"petalLength": 6.0,
"petalWidth": 2.5,
"sepalLength": 6.3,
"sepalWidth": 3.3,
"species": "virginica"
},
{
"petalLength": 5.1,
"petalWidth": 1.9,
"sepalLength": 5.8,
"sepalWidth": 2.7,
"species": "virginica"
},
{
"petalLength": 5.9,
"petalWidth": 2.1,
"sepalLength": 7.1,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 5.6,
"petalWidth": 1.8,
"sepalLength": 6.3,
"sepalWidth": 2.9,
"species": "virginica"
},
{
"petalLength": 5.8,
"petalWidth": 2.2,
"sepalLength": 6.5,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 6.6,
"petalWidth": 2.1,
"sepalLength": 7.6,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 4.5,
"petalWidth": 1.7000000000000002,
"sepalLength": 4.9,
"sepalWidth": 2.5,
"species": "virginica"
},
{
"petalLength": 6.3,
"petalWidth": 1.8,
"sepalLength": 7.3,
"sepalWidth": 2.9,
"species": "virginica"
},
{
"petalLength": 5.8,
"petalWidth": 1.8,
"sepalLength": 6.7,
"sepalWidth": 2.5,
"species": "virginica"
},
{
"petalLength": 6.1,
"petalWidth": 2.5,
"sepalLength": 7.2,
"sepalWidth": 3.6,
"species": "virginica"
},
{
"petalLength": 5.1,
"petalWidth": 2.0,
"sepalLength": 6.5,
"sepalWidth": 3.2,
"species": "virginica"
},
{
"petalLength": 5.3,
"petalWidth": 1.9,
"sepalLength": 6.4,
"sepalWidth": 2.7,
"species": "virginica"
},
{
"petalLength": 5.5,
"petalWidth": 2.1,
"sepalLength": 6.8,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 5.0,
"petalWidth": 2.0,
"sepalLength": 5.7,
"sepalWidth": 2.5,
"species": "virginica"
},
{
"petalLength": 5.1,
"petalWidth": 2.4,
"sepalLength": 5.8,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 5.3,
"petalWidth": 2.3,
"sepalLength": 6.4,
"sepalWidth": 3.2,
"species": "virginica"
},
{
"petalLength": 5.5,
"petalWidth": 1.8,
"sepalLength": 6.5,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 6.7,
"petalWidth": 2.2,
"sepalLength": 7.7,
"sepalWidth": 3.8,
"species": "virginica"
},
{
"petalLength": 6.9,
"petalWidth": 2.3,
"sepalLength": 7.7,
"sepalWidth": 2.6,
"species": "virginica"
},
{
"petalLength": 5.0,
"petalWidth": 1.5,
"sepalLength": 6.0,
"sepalWidth": 2.2,
"species": "virginica"
},
{
"petalLength": 5.7,
"petalWidth": 2.3,
"sepalLength": 6.9,
"sepalWidth": 3.2,
"species": "virginica"
},
{
"petalLength": 4.9,
"petalWidth": 2.0,
"sepalLength": 5.6,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 6.7,
"petalWidth": 2.0,
"sepalLength": 7.7,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 4.9,
"petalWidth": 1.8,
"sepalLength": 6.3,
"sepalWidth": 2.7,
"species": "virginica"
},
{
"petalLength": 5.7,
"petalWidth": 2.1,
"sepalLength": 6.7,
"sepalWidth": 3.3,
"species": "virginica"
},
{
"petalLength": 6.0,
"petalWidth": 1.8,
"sepalLength": 7.2,
"sepalWidth": 3.2,
"species": "virginica"
},
{
"petalLength": 4.8,
"petalWidth": 1.8,
"sepalLength": 6.2,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 4.9,
"petalWidth": 1.8,
"sepalLength": 6.1,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 5.6,
"petalWidth": 2.1,
"sepalLength": 6.4,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 5.8,
"petalWidth": 1.6,
"sepalLength": 7.2,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 6.1,
"petalWidth": 1.9,
"sepalLength": 7.4,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 6.4,
"petalWidth": 2.0,
"sepalLength": 7.9,
"sepalWidth": 3.8,
"species": "virginica"
},
{
"petalLength": 5.6,
"petalWidth": 2.2,
"sepalLength": 6.4,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 5.1,
"petalWidth": 1.5,
"sepalLength": 6.3,
"sepalWidth": 2.8,
"species": "virginica"
},
{
"petalLength": 5.6,
"petalWidth": 1.4,
"sepalLength": 6.1,
"sepalWidth": 2.6,
"species": "virginica"
},
{
"petalLength": 6.1,
"petalWidth": 2.3,
"sepalLength": 7.7,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 5.6,
"petalWidth": 2.4,
"sepalLength": 6.3,
"sepalWidth": 3.4,
"species": "virginica"
},
{
"petalLength": 5.5,
"petalWidth": 1.8,
"sepalLength": 6.4,
"sepalWidth": 3.1,
"species": "virginica"
},
{
"petalLength": 4.8,
"petalWidth": 1.8,
"sepalLength": 6.0,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 5.4,
"petalWidth": 2.1,
"sepalLength": 6.9,
"sepalWidth": 3.1,
"species": "virginica"
},
{
"petalLength": 5.6,
"petalWidth": 2.4,
"sepalLength": 6.7,
"sepalWidth": 3.1,
"species": "virginica"
},
{
"petalLength": 5.1,
"petalWidth": 2.3,
"sepalLength": 6.9,
"sepalWidth": 3.1,
"species": "virginica"
},
{
"petalLength": 5.1,
"petalWidth": 1.9,
"sepalLength": 5.8,
"sepalWidth": 2.7,
"species": "virginica"
},
{
"petalLength": 5.9,
"petalWidth": 2.3,
"sepalLength": 6.8,
"sepalWidth": 3.2,
"species": "virginica"
},
{
"petalLength": 5.7,
"petalWidth": 2.5,
"sepalLength": 6.7,
"sepalWidth": 3.3,
"species": "virginica"
},
{
"petalLength": 5.2,
"petalWidth": 2.3,
"sepalLength": 6.7,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 5.0,
"petalWidth": 1.9,
"sepalLength": 6.3,
"sepalWidth": 2.5,
"species": "virginica"
},
{
"petalLength": 5.2,
"petalWidth": 2.0,
"sepalLength": 6.5,
"sepalWidth": 3.0,
"species": "virginica"
},
{
"petalLength": 5.4,
"petalWidth": 2.3,
"sepalLength": 6.2,
"sepalWidth": 3.4,
"species": "virginica"
},
{
"petalLength": 5.1,
"petalWidth": 1.8,
"sepalLength": 5.9,
"sepalWidth": 3.0,
"species": "virginica"
}
]
},
"layer": [
{
"encoding": {
"x": {
"field": "species",
"type": "nominal"
},
"y": {
"aggregate": "min",
"axis": {
"title": "petalLength"
},
"field": "petalLength",
"type": "quantitative"
},
"y2": {
"aggregate": "max",
"field": "petalLength"
}
},
"height": 600,
"mark": "rule",
"width": 800
},
{
"encoding": {
"x": {
"field": "species",
"type": "nominal"
},
"y": {
"aggregate": "min",
"field": "petalLength",
"type": "quantitative"
}
},
"height": 600,
"mark": {
"color": "black",
"type": "tick"
},
"width": 800
},
{
"encoding": {
"x": {
"field": "species",
"type": "nominal"
},
"y": {
"aggregate": "max",
"field": "petalLength",
"type": "quantitative"
}
},
"height": 600,
"mark": {
"color": "black",
"type": "tick"
},
"width": 800
},
{
"encoding": {
"x": {
"field": "species",
"type": "nominal"
},
"y": {
"aggregate": "q1",
"field": "petalLength",
"type": "quantitative"
},
"y2": {
"aggregate": "median",
"field": "petalLength"
}
},
"height": 600,
"mark": {
"fill": "#4682b4",
"stroke": "black",
"type": "bar"
},
"width": 800
},
{
"encoding": {
"x": {
"field": "species",
"type": "nominal"
},
"y": {
"aggregate": "median",
"field": "petalLength",
"type": "quantitative"
},
"y2": {
"aggregate": "q3",
"field": "petalLength"
}
},
"height": 600,
"mark": {
"fill": "#4682b4",
"stroke": "black",
"type": "bar"
},
"width": 800
}
]
};
var opt = {"renderer": "canvas", "actions": false};
vegaEmbed("#Acd7df3404c9b34535dca362f7f433917beac586aded57d4e1ed370413d482bad", spec, opt);
</script>
<h2>Boxplot from cast data</h2>
<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_boxplot_cast</span><span class="p">():</span>
<span class="n">iris</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">()</span>
<span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">boxplot</span><span class="p">(</span><span class="n">iris</span><span class="p">,</span> <span class="n">columns</span><span class="o">=</span><span class="nb">list</span><span class="p">(</span><span class="n">iris</span><span class="o">.</span><span class="n">columns</span><span class="p">[:</span><span class="o">-</span><span class="mi">1</span><span class="p">]))</span>
<span class="n">show_test</span><span class="p">(</span><span class="n">test_boxplot_cast</span><span class="p">)</span>
</pre></div>
<div id="Ac2c1f8a2d88142b9dec2d829a4dfaf86ab545f4032e13160742cd00c0517debf"></div>
<script type="text/javascript">
var spec = {
"$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
"config": {
"view": {
"continuousHeight": 300,
"continuousWidth": 400
}
},
"data": {
"name": "data-8fedee1713dc830cd0b2aa7e4b1a64ef"
},
"datasets": {
"data-8fedee1713dc830cd0b2aa7e4b1a64ef": [
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.9,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.7,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.6,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.6,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.9,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.8,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.8,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.3,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.8,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.6,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.8,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.2,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.2,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.7,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.8,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.2,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.5,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.9,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.5,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.9,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.5,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.4,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.8,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 4.6,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.3,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 7.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.4,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.9,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.5,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.5,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 4.9,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.6,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.2,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.9,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.1,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.6,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.6,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.8,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.2,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.6,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.9,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.1,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.1,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.4,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.6,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.8,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.5,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.5,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.8,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.4,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.6,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.5,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.5,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.1,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.8,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.0,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.6,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 6.2,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.1,
"variable": "sepalLength"
},
{
"species": "versicolor",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 5.8,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.1,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.5,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.6,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 4.9,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.3,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.2,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.5,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.4,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.8,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 5.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 5.8,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.4,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.5,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.0,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.9,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 5.6,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.2,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.2,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.1,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.4,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.2,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.4,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.9,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.4,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.1,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 7.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.4,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.0,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.9,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.9,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 5.8,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.8,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.7,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.3,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.5,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 6.2,
"variable": "sepalLength"
},
{
"species": "virginica",
"value": 5.9,
"variable": "sepalLength"
},
{
"species": "setosa",
"value": 3.5,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.6,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.9,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.7,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 4.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 4.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.9,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.5,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.8,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.8,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.7,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.6,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.3,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.5,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 4.1,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 4.2,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.5,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.6,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.5,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 2.3,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.5,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.8,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.8,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.7,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 3.3,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.3,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.3,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.4,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.2,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.2,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.6,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.4,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.4,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.3,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.6,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.6,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.3,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "versicolor",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.3,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.9,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.6,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.6,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.2,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.3,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.8,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.6,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.1,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.7,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.2,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.3,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 2.5,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.4,
"variable": "sepalWidth"
},
{
"species": "virginica",
"value": 3.0,
"variable": "sepalWidth"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.3,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.7000000000000002,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.6,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.1,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.2,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.3,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.7000000000000002,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.7000000000000002,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.0,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.7000000000000002,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.9,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.6,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.6,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.6,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.6,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.2,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.3,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.3,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.3,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.3,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.3,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.6,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.9,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.6,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.5,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 1.4,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.7,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.9,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.0,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.6,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.7,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.3,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.6,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.9,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.2,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.0,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.7,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.6,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.4,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.1,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.9,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.8,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.0,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.9,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.7,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.3,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.4,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.8,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 5.0,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.8,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.7,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.9,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.7,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.4,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.1,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.0,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.4,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.6,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.0,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.3,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.2,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.2,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.2,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.3,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 3.0,
"variable": "petalLength"
},
{
"species": "versicolor",
"value": 4.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.0,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.9,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.6,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.8,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.6,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 4.5,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.3,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.8,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.3,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.5,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.0,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.3,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.5,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.7,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.9,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.0,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.7,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 4.9,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.7,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 4.9,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.7,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.0,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 4.8,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 4.9,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.6,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.8,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.4,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.6,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.6,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 6.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.6,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.5,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 4.8,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.4,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.6,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.9,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.7,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.2,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.0,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.2,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.4,
"variable": "petalLength"
},
{
"species": "virginica",
"value": 5.1,
"variable": "petalLength"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.4,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.30000000000000004,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.1,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.1,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.1,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.4,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.4,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.30000000000000004,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.30000000000000004,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.30000000000000004,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.4,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.5,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.4,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.4,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.1,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.1,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.30000000000000004,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.30000000000000004,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.6000000000000001,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.4,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.30000000000000004,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "setosa",
"value": 0.2,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.6,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.0,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.0,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.0,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.0,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.1,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.2,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.7000000000000002,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.0,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.1,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.0,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.2,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.6,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.6,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.2,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.2,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.0,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.2,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.1,
"variable": "petalWidth"
},
{
"species": "versicolor",
"value": 1.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.5,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.9,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.1,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.2,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.1,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.7000000000000002,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.5,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.0,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.9,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.1,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.0,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.4,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.2,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.0,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.0,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.1,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.1,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.6,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.9,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.0,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.2,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.5,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.4,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.4,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.1,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.4,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.9,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.5,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.9,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.0,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 2.3,
"variable": "petalWidth"
},
{
"species": "virginica",
"value": 1.8,
"variable": "petalWidth"
}
]
},
"layer": [
{
"encoding": {
"x": {
"field": "variable",
"type": "nominal"
},
"y": {
"aggregate": "min",
"axis": {
"title": "value"
},
"field": "value",
"type": "quantitative"
},
"y2": {
"aggregate": "max",
"field": "value"
}
},
"height": 600,
"mark": "rule",
"width": 800
},
{
"encoding": {
"x": {
"field": "variable",
"type": "nominal"
},
"y": {
"aggregate": "min",
"field": "value",
"type": "quantitative"
}
},
"height": 600,
"mark": {
"color": "black",
"type": "tick"
},
"width": 800
},
{
"encoding": {
"x": {
"field": "variable",
"type": "nominal"
},
"y": {
"aggregate": "max",
"field": "value",
"type": "quantitative"
}
},
"height": 600,
"mark": {
"color": "black",
"type": "tick"
},
"width": 800
},
{
"encoding": {
"x": {
"field": "variable",
"type": "nominal"
},
"y": {
"aggregate": "q1",
"field": "value",
"type": "quantitative"
},
"y2": {
"aggregate": "median",
"field": "value"
}
},
"height": 600,
"mark": {
"fill": "#4682b4",
"stroke": "black",
"type": "bar"
},
"width": 800
},
{
"encoding": {
"x": {
"field": "variable",
"type": "nominal"
},
"y": {
"aggregate": "median",
"field": "value",
"type": "quantitative"
},
"y2": {
"aggregate": "q3",
"field": "value"
}
},
"height": 600,
"mark": {
"fill": "#4682b4",
"stroke": "black",
"type": "bar"
},
"width": 800
}
]
};
var opt = {"renderer": "canvas", "actions": false};
vegaEmbed("#Ac2c1f8a2d88142b9dec2d829a4dfaf86ab545f4032e13160742cd00c0517debf", spec, opt);
</script>
<h2>Boxplot with color</h2>
<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_boxplot_color</span><span class="p">():</span>
<span class="n">source</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">barley</span><span class="p">()</span>
<span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">boxplot</span><span class="p">(</span>
<span class="n">source</span><span class="p">,</span>
<span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s2">"yield"</span><span class="p">],</span>
<span class="n">group_by</span><span class="o">=</span><span class="s2">"year"</span><span class="p">,</span>
<span class="n">color</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span>
<span class="n">width</span><span class="o">=</span><span class="mi">800</span> <span class="o">//</span> <span class="nb">len</span><span class="p">(</span><span class="n">source</span><span class="p">[</span><span class="s2">"site"</span><span class="p">]</span><span class="o">.</span><span class="n">unique</span><span class="p">()),</span>
<span class="p">)</span><span class="o">.</span><span class="n">facet</span><span class="p">(</span><span class="n">column</span><span class="o">=</span><span class="s2">"site"</span><span class="p">)</span>
<span class="n">show_test</span><span class="p">(</span><span class="n">test_boxplot_color</span><span class="p">)</span>
</pre></div>
<div id="Ae33c8d3a9ad31aece415fd3bc30450de16f2b84317c6e24df0d4d1c2989e05d3"></div>
<script type="text/javascript">
var spec = {
"$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
"config": {
"view": {
"continuousHeight": 300,
"continuousWidth": 400
}
},
"data": {
"name": "data-093ece8c35bb2d41094cfb6138ec810b"
},
"datasets": {
"data-093ece8c35bb2d41094cfb6138ec810b": [
{
"site": "University Farm",
"variety": "Manchuria",
"year": 1931,
"yield": 27.0
},
{
"site": "Waseca",
"variety": "Manchuria",
"year": 1931,
"yield": 48.86667
},
{
"site": "Morris",
"variety": "Manchuria",
"year": 1931,
"yield": 27.43334
},
{
"site": "Crookston",
"variety": "Manchuria",
"year": 1931,
"yield": 39.93333
},
{
"site": "Grand Rapids",
"variety": "Manchuria",
"year": 1931,
"yield": 32.96667
},
{
"site": "Duluth",
"variety": "Manchuria",
"year": 1931,
"yield": 28.96667
},
{
"site": "University Farm",
"variety": "Glabron",
"year": 1931,
"yield": 43.06666
},
{
"site": "Waseca",
"variety": "Glabron",
"year": 1931,
"yield": 55.2
},
{
"site": "Morris",
"variety": "Glabron",
"year": 1931,
"yield": 28.76667
},
{
"site": "Crookston",
"variety": "Glabron",
"year": 1931,
"yield": 38.13333
},
{
"site": "Grand Rapids",
"variety": "Glabron",
"year": 1931,
"yield": 29.13333
},
{
"site": "Duluth",
"variety": "Glabron",
"year": 1931,
"yield": 29.66667
},
{
"site": "University Farm",
"variety": "Svansota",
"year": 1931,
"yield": 35.13333
},
{
"site": "Waseca",
"variety": "Svansota",
"year": 1931,
"yield": 47.33333
},
{
"site": "Morris",
"variety": "Svansota",
"year": 1931,
"yield": 25.76667
},
{
"site": "Crookston",
"variety": "Svansota",
"year": 1931,
"yield": 40.46667
},
{
"site": "Grand Rapids",
"variety": "Svansota",
"year": 1931,
"yield": 29.66667
},
{
"site": "Duluth",
"variety": "Svansota",
"year": 1931,
"yield": 25.7
},
{
"site": "University Farm",
"variety": "Velvet",
"year": 1931,
"yield": 39.9
},
{
"site": "Waseca",
"variety": "Velvet",
"year": 1931,
"yield": 50.23333
},
{
"site": "Morris",
"variety": "Velvet",
"year": 1931,
"yield": 26.13333
},
{
"site": "Crookston",
"variety": "Velvet",
"year": 1931,
"yield": 41.33333
},
{
"site": "Grand Rapids",
"variety": "Velvet",
"year": 1931,
"yield": 23.03333
},
{
"site": "Duluth",
"variety": "Velvet",
"year": 1931,
"yield": 26.3
},
{
"site": "University Farm",
"variety": "Trebi",
"year": 1931,
"yield": 36.56666
},
{
"site": "Waseca",
"variety": "Trebi",
"year": 1931,
"yield": 63.8333
},
{
"site": "Morris",
"variety": "Trebi",
"year": 1931,
"yield": 43.76667
},
{
"site": "Crookston",
"variety": "Trebi",
"year": 1931,
"yield": 46.93333
},
{
"site": "Grand Rapids",
"variety": "Trebi",
"year": 1931,
"yield": 29.76667
},
{
"site": "Duluth",
"variety": "Trebi",
"year": 1931,
"yield": 33.93333
},
{
"site": "University Farm",
"variety": "No. 457",
"year": 1931,
"yield": 43.26667
},
{
"site": "Waseca",
"variety": "No. 457",
"year": 1931,
"yield": 58.1
},
{
"site": "Morris",
"variety": "No. 457",
"year": 1931,
"yield": 28.7
},
{
"site": "Crookston",
"variety": "No. 457",
"year": 1931,
"yield": 45.66667
},
{
"site": "Grand Rapids",
"variety": "No. 457",
"year": 1931,
"yield": 32.16667
},
{
"site": "Duluth",
"variety": "No. 457",
"year": 1931,
"yield": 33.6
},
{
"site": "University Farm",
"variety": "No. 462",
"year": 1931,
"yield": 36.6
},
{
"site": "Waseca",
"variety": "No. 462",
"year": 1931,
"yield": 65.7667
},
{
"site": "Morris",
"variety": "No. 462",
"year": 1931,
"yield": 30.36667
},
{
"site": "Crookston",
"variety": "No. 462",
"year": 1931,
"yield": 48.56666
},
{
"site": "Grand Rapids",
"variety": "No. 462",
"year": 1931,
"yield": 24.93334
},
{
"site": "Duluth",
"variety": "No. 462",
"year": 1931,
"yield": 28.1
},
{
"site": "University Farm",
"variety": "Peatland",
"year": 1931,
"yield": 32.76667
},
{
"site": "Waseca",
"variety": "Peatland",
"year": 1931,
"yield": 48.56666
},
{
"site": "Morris",
"variety": "Peatland",
"year": 1931,
"yield": 29.86667
},
{
"site": "Crookston",
"variety": "Peatland",
"year": 1931,
"yield": 41.6
},
{
"site": "Grand Rapids",
"variety": "Peatland",
"year": 1931,
"yield": 34.7
},
{
"site": "Duluth",
"variety": "Peatland",
"year": 1931,
"yield": 32.0
},
{
"site": "University Farm",
"variety": "No. 475",
"year": 1931,
"yield": 24.66667
},
{
"site": "Waseca",
"variety": "No. 475",
"year": 1931,
"yield": 46.76667
},
{
"site": "Morris",
"variety": "No. 475",
"year": 1931,
"yield": 22.6
},
{
"site": "Crookston",
"variety": "No. 475",
"year": 1931,
"yield": 44.1
},
{
"site": "Grand Rapids",
"variety": "No. 475",
"year": 1931,
"yield": 19.7
},
{
"site": "Duluth",
"variety": "No. 475",
"year": 1931,
"yield": 33.06666
},
{
"site": "University Farm",
"variety": "Wisconsin No. 38",
"year": 1931,
"yield": 39.3
},
{
"site": "Waseca",
"variety": "Wisconsin No. 38",
"year": 1931,
"yield": 58.8
},
{
"site": "Morris",
"variety": "Wisconsin No. 38",
"year": 1931,
"yield": 29.46667
},
{
"site": "Crookston",
"variety": "Wisconsin No. 38",
"year": 1931,
"yield": 49.86667
},
{
"site": "Grand Rapids",
"variety": "Wisconsin No. 38",
"year": 1931,
"yield": 34.46667
},
{
"site": "Duluth",
"variety": "Wisconsin No. 38",
"year": 1931,
"yield": 31.6
},
{
"site": "University Farm",
"variety": "Manchuria",
"year": 1932,
"yield": 26.9
},
{
"site": "Waseca",
"variety": "Manchuria",
"year": 1932,
"yield": 33.46667
},
{
"site": "Morris",
"variety": "Manchuria",
"year": 1932,
"yield": 34.36666
},
{
"site": "Crookston",
"variety": "Manchuria",
"year": 1932,
"yield": 32.96667
},
{
"site": "Grand Rapids",
"variety": "Manchuria",
"year": 1932,
"yield": 22.13333
},
{
"site": "Duluth",
"variety": "Manchuria",
"year": 1932,
"yield": 22.56667
},
{
"site": "University Farm",
"variety": "Glabron",
"year": 1932,
"yield": 36.8
},
{
"site": "Waseca",
"variety": "Glabron",
"year": 1932,
"yield": 37.73333
},
{
"site": "Morris",
"variety": "Glabron",
"year": 1932,
"yield": 35.13333
},
{
"site": "Crookston",
"variety": "Glabron",
"year": 1932,
"yield": 26.16667
},
{
"site": "Grand Rapids",
"variety": "Glabron",
"year": 1932,
"yield": 14.43333
},
{
"site": "Duluth",
"variety": "Glabron",
"year": 1932,
"yield": 25.86667
},
{
"site": "University Farm",
"variety": "Svansota",
"year": 1932,
"yield": 27.43334
},
{
"site": "Waseca",
"variety": "Svansota",
"year": 1932,
"yield": 38.5
},
{
"site": "Morris",
"variety": "Svansota",
"year": 1932,
"yield": 35.03333
},
{
"site": "Crookston",
"variety": "Svansota",
"year": 1932,
"yield": 20.63333
},
{
"site": "Grand Rapids",
"variety": "Svansota",
"year": 1932,
"yield": 16.63333
},
{
"site": "Duluth",
"variety": "Svansota",
"year": 1932,
"yield": 22.23333
},
{
"site": "University Farm",
"variety": "Velvet",
"year": 1932,
"yield": 26.8
},
{
"site": "Waseca",
"variety": "Velvet",
"year": 1932,
"yield": 37.4
},
{
"site": "Morris",
"variety": "Velvet",
"year": 1932,
"yield": 38.83333
},
{
"site": "Crookston",
"variety": "Velvet",
"year": 1932,
"yield": 32.06666
},
{
"site": "Grand Rapids",
"variety": "Velvet",
"year": 1932,
"yield": 32.23333
},
{
"site": "Duluth",
"variety": "Velvet",
"year": 1932,
"yield": 22.46667
},
{
"site": "University Farm",
"variety": "Trebi",
"year": 1932,
"yield": 29.06667
},
{
"site": "Waseca",
"variety": "Trebi",
"year": 1932,
"yield": 49.2333
},
{
"site": "Morris",
"variety": "Trebi",
"year": 1932,
"yield": 46.63333
},
{
"site": "Crookston",
"variety": "Trebi",
"year": 1932,
"yield": 41.83333
},
{
"site": "Grand Rapids",
"variety": "Trebi",
"year": 1932,
"yield": 20.63333
},
{
"site": "Duluth",
"variety": "Trebi",
"year": 1932,
"yield": 30.6
},
{
"site": "University Farm",
"variety": "No. 457",
"year": 1932,
"yield": 26.43334
},
{
"site": "Waseca",
"variety": "No. 457",
"year": 1932,
"yield": 42.2
},
{
"site": "Morris",
"variety": "No. 457",
"year": 1932,
"yield": 43.53334
},
{
"site": "Crookston",
"variety": "No. 457",
"year": 1932,
"yield": 34.33333
},
{
"site": "Grand Rapids",
"variety": "No. 457",
"year": 1932,
"yield": 19.46667
},
{
"site": "Duluth",
"variety": "No. 457",
"year": 1932,
"yield": 22.7
},
{
"site": "University Farm",
"variety": "No. 462",
"year": 1932,
"yield": 25.56667
},
{
"site": "Waseca",
"variety": "No. 462",
"year": 1932,
"yield": 44.7
},
{
"site": "Morris",
"variety": "No. 462",
"year": 1932,
"yield": 47.0
},
{
"site": "Crookston",
"variety": "No. 462",
"year": 1932,
"yield": 30.53333
},
{
"site": "Grand Rapids",
"variety": "No. 462",
"year": 1932,
"yield": 19.9
},
{
"site": "Duluth",
"variety": "No. 462",
"year": 1932,
"yield": 22.5
},
{
"site": "University Farm",
"variety": "Peatland",
"year": 1932,
"yield": 28.06667
},
{
"site": "Waseca",
"variety": "Peatland",
"year": 1932,
"yield": 36.03333
},
{
"site": "Morris",
"variety": "Peatland",
"year": 1932,
"yield": 43.2
},
{
"site": "Crookston",
"variety": "Peatland",
"year": 1932,
"yield": 25.23333
},
{
"site": "Grand Rapids",
"variety": "Peatland",
"year": 1932,
"yield": 26.76667
},
{
"site": "Duluth",
"variety": "Peatland",
"year": 1932,
"yield": 31.36667
},
{
"site": "University Farm",
"variety": "No. 475",
"year": 1932,
"yield": 30.0
},
{
"site": "Waseca",
"variety": "No. 475",
"year": 1932,
"yield": 41.26667
},
{
"site": "Morris",
"variety": "No. 475",
"year": 1932,
"yield": 44.23333
},
{
"site": "Crookston",
"variety": "No. 475",
"year": 1932,
"yield": 32.13333
},
{
"site": "Grand Rapids",
"variety": "No. 475",
"year": 1932,
"yield": 15.23333
},
{
"site": "Duluth",
"variety": "No. 475",
"year": 1932,
"yield": 27.36667
},
{
"site": "University Farm",
"variety": "Wisconsin No. 38",
"year": 1932,
"yield": 38.0
},
{
"site": "Waseca",
"variety": "Wisconsin No. 38",
"year": 1932,
"yield": 58.16667
},
{
"site": "Morris",
"variety": "Wisconsin No. 38",
"year": 1932,
"yield": 47.16667
},
{
"site": "Crookston",
"variety": "Wisconsin No. 38",
"year": 1932,
"yield": 35.9
},
{
"site": "Grand Rapids",
"variety": "Wisconsin No. 38",
"year": 1932,
"yield": 20.66667
},
{
"site": "Duluth",
"variety": "Wisconsin No. 38",
"year": 1932,
"yield": 29.33333
}
]
},
"facet": {
"column": {
"field": "site",
"type": "nominal"
}
},
"spec": {
"layer": [
{
"encoding": {
"x": {
"field": "year",
"type": "nominal"
},
"y": {
"aggregate": "min",
"axis": {
"title": "yield"
},
"field": "yield",
"type": "quantitative"
},
"y2": {
"aggregate": "max",
"field": "yield"
}
},
"height": 600,
"mark": "rule",
"width": 133
},
{
"encoding": {
"x": {
"field": "year",
"type": "nominal"
},
"y": {
"aggregate": "min",
"field": "yield",
"type": "quantitative"
}
},
"height": 600,
"mark": {
"color": "black",
"type": "tick"
},
"width": 133
},
{
"encoding": {
"x": {
"field": "year",
"type": "nominal"
},
"y": {
"aggregate": "max",
"field": "yield",
"type": "quantitative"
}
},
"height": 600,
"mark": {
"color": "black",
"type": "tick"
},
"width": 133
},
{
"encoding": {
"fill": {
"field": "year",
"type": "nominal"
},
"x": {
"field": "year",
"type": "nominal"
},
"y": {
"aggregate": "q1",
"field": "yield",
"type": "quantitative"
},
"y2": {
"aggregate": "median",
"field": "yield"
}
},
"height": 600,
"mark": {
"fill": "#4682b4",
"stroke": "black",
"type": "bar"
},
"width": 133
},
{
"encoding": {
"fill": {
"field": "year",
"type": "nominal"
},
"x": {
"field": "year",
"type": "nominal"
},
"y": {
"aggregate": "median",
"field": "yield",
"type": "quantitative"
},
"y2": {
"aggregate": "q3",
"field": "yield"
}
},
"height": 600,
"mark": {
"fill": "#4682b4",
"stroke": "black",
"type": "bar"
},
"width": 133
}
]
}
};
var opt = {"renderer": "canvas", "actions": false};
vegaEmbed("#Ae33c8d3a9ad31aece415fd3bc30450de16f2b84317c6e24df0d4d1c2989e05d3", spec, opt);
</script>