Skip to content

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

@aulemahal

Description

@aulemahal

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions