Ejemplo n.º 1
0
def test_get_range_with_pandas_group(pd):
    from bokeh.sampledata.iris import flowers
    g = flowers.groupby('species')
    r = bph._get_range(g)
    assert isinstance(r, FactorRange)
    assert r.factors == ['setosa', 'versicolor',
                         'virginica']  # should always be sorted
Ejemplo n.º 2
0
def test_get_range_with_pandas_group():
    from bokeh.sampledata.iris import flowers
    g = flowers.groupby('species')
    r = _get_range(g)
    assert isinstance(r, FactorRange)
    assert r.factors == ['setosa', 'versicolor', 'virginica'] # should always be sorted