Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Merge branch 'master' of https://github.com/holoviz/hvplot into fix/hist
  • Loading branch information
MarcSkovMadsen committed Dec 3, 2022
commit 9fa75003ef74470ef51444c359a2c47c0ae54527
15 changes: 2 additions & 13 deletions hvplot/tests/testibis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import holoviews as hv
import matplotlib
import pandas as pd
import pytest

matplotlib.use('agg')
Expand All @@ -13,7 +14,6 @@
import hvplot.ibis # noqa
import hvplot.pandas # noqa
import ibis
import pandas as pd
except:
pytest.skip(allow_module_level=True)

Expand Down Expand Up @@ -51,18 +51,7 @@ def ibis_duckdb_data(df: pd.DataFrame, *args, **kwargs):

return ibis.duckdb.connect(filename).table("df")

class IbisMemConnection(param.Parameterized):
def __init__(self, df):
super().__init__()
self._table = ibis.memtable(df)

def table(self, df):
return self._table

def ibis_mem_table(df: pd.DataFrame, *args, **kwargs):
return IbisMemConnection(df=df)

@pytest.fixture(params=[pandas_data, ibis_pandas_data, ibis_duckdb_data, ibis_sqlite_data, ibis_mem_table])
@pytest.fixture(params=[pandas_data, ibis_pandas_data, ibis_duckdb_data, ibis_sqlite_data])
def data(request, reference_df, tmpdir):
return request.param(reference_df, tmpdir=tmpdir)

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.