Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

to_bokeh should have an optional group_by parameter #45

@okennedy

Description

@okennedy

Bokeh naturally interprets Pandas group-by objects, making it very easy to plot series for datasets where each row defines one data point for a single group. As an example, take the Vizier Getting Started Bokeh Example.

Over half the code in the script is used solely to break the dataset down into groups.

By comparison, if the dataset were coming from Pandas, the following line would supplant nearly everything:

source = ds.groupby(['COUNTY'])

I propose adding a group_by optional parameter for to_bokeh so that the following line has the same behavior:

source = vizierdb.get_dataset('ticks').to_bokeh(group_by = ['COUNTY'])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions