Exemplo n.º 1
0
def test_vis_list_set_intent():
    from lux.vis.VisList import VisList
    df = pd.read_csv("lux/data/car.csv")
    vislist = VisList(["Horsepower","?"],df)
    vislist._repr_html_()
    for vis in vislist: assert vis.get_attr_by_attr_name("Horsepower")!=[]
    vislist.intent = ["Weight","?"]
    vislist._repr_html_()
    for vis in vislist: assert vis.get_attr_by_attr_name("Weight")!=[]
Exemplo n.º 2
0
Arquivo: test_vis.py Projeto: whmz/lux
def test_vis_list_set_intent(global_var):
    from lux.vis.VisList import VisList

    df = pytest.car_df
    vislist = VisList(["Horsepower", "?"], df)
    vislist._repr_html_()
    for vis in vislist:
        assert vis.get_attr_by_attr_name("Horsepower") != []
    vislist.intent = ["Weight", "?"]
    vislist._repr_html_()
    for vis in vislist:
        assert vis.get_attr_by_attr_name("Weight") != []
Exemplo n.º 3
0
def test_display_VisList():
    df = pd.read_csv("lux/data/car.csv")
    vislist = VisList(["?", "Acceleration"], df)
    vislist._repr_html_()
Exemplo n.º 4
0
def test_display_VisList(global_var):
    df = pytest.car_df
    vislist = VisList(["?", "Acceleration"], df)
    vislist._repr_html_()