MCPcopy Create free account
hub / github.com/holoviz/hvplot / TestPatchDask

Class TestPatchDask

hvplot/tests/testpatch.py:28–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class TestPatchDask(TestCase):
29 def setUp(self):
30 try:
31 import dask.dataframe as dd # noqa
32 except ImportError:
33 raise SkipTest('Dask not available')
34 import hvplot.dask # noqa
35
36 def test_dask_series_patched(self):
37 import dask.dataframe as dd
38
39 series = pd.Series([0, 1, 2])
40 dseries = dd.from_pandas(series, 2)
41 self.assertIsInstance(dseries.hvplot, hvPlotTabular)
42
43 def test_dask_dataframe_patched(self):
44 import dask.dataframe as dd
45
46 df = pd.DataFrame([[1, 2], [3, 4], [5, 6]], columns=['x', 'y'])
47 ddf = dd.from_pandas(df, 2)
48 self.assertIsInstance(ddf.hvplot, hvPlotTabular)
49
50
51class TestPatchXArray(TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…