Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to load subset of data for Intake Datasets #290

Open
talebzeghmi opened this issue Aug 21, 2019 · 0 comments
Open

Proposal to load subset of data for Intake Datasets #290

talebzeghmi opened this issue Aug 21, 2019 · 0 comments
Labels
type: enhancement New feature or request
Milestone

Comments

@talebzeghmi
Copy link

Issue:

hvPlot by default loads all partitions into memory, see process_intake(). This is an issue for very large datasets.

Proposed solution:

Two extra parameters (in addition to use_dask) sent to hvPlot.process_intake(): read_partition, dask_sample.

  • dask_sample: value would be between 0 and 1.
  • read_partition: would indicate which partition to read.

The contents of process_intake can be updated to:

    # todo: argument validation
    if dask_sample:
        data = data.to_dask().sample(frac=float(dask_sample), replace=True) 
    elif use_dask:
        data = data.to_dask()
    elif read_partition:
        data = data.read_partition(read_partition)
    else:
        data = data.read()
    return data

Related

@jsignell jsignell added type: enhancement New feature or request and removed TRIAGE labels Sep 11, 2019
@philippjfr philippjfr added this to the v0.7.0 milestone Jun 29, 2020
@philippjfr philippjfr modified the milestones: v0.7.0, 0.7.1 Jan 6, 2021
@philippjfr philippjfr modified the milestones: 0.7.1, 0.7.2, 0.8 May 21, 2021
@jlstevens jlstevens modified the milestones: 0.8, 0.81 Mar 7, 2022
@maximlt maximlt modified the milestones: 0.8.2, 0.9.0 Oct 23, 2022
@maximlt maximlt modified the milestones: 0.10.x, next Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants