| 26 | |
| 27 | |
| 28 | class 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 | |
| 51 | class TestPatchXArray(TestCase): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…