holoviz / holoviz/hvplot

Explorer doesn't know how to "sample" xarray objects

Open
#1,692 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

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` ?

https://github.com/holoviz/hvplot/blob/58ecac37fed12104f5192b77c05fa0d046d57058/hvplot/ui.py#L697

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.