When the data sent to the explorer is a large xarray object and options rasterize and datashader are turned off, the explorer tries to sample the data to reduce its size. However, it only knows how to do so with pandas DataFrames : df.sample(...).
I'm not sure how one would do that "sampling" with xarray objects, but maybe it could raise a clearer error when encountering a xarray DataArray ?
|
df = df.sample(n=MAX_ROWS) |
When the data sent to the explorer is a large xarray object and options
rasterizeanddatashaderare turned off, the explorer tries to sample the data to reduce its size. However, it only knows how to do so with pandas DataFrames :df.sample(...).I'm not sure how one would do that "sampling" with xarray objects, but maybe it could raise a clearer error when encountering a xarray
DataArray?hvplot/hvplot/ui.py
Line 697 in 58ecac3