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

Method test_xarray_dataarray_patched

hvplot/tests/testpatch.py:59–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 import hvplot.xarray # noqa
58
59 def test_xarray_dataarray_patched(self):
60 import xarray as xr
61
62 array = np.random.rand(100, 100)
63 xr_array = xr.DataArray(array, coords={'x': range(100), 'y': range(100)}, dims=('y', 'x'))
64 self.assertIsInstance(xr_array.hvplot, hvPlot)
65
66 def test_xarray_dataset_patched(self):
67 import xarray as xr

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected