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

to_bokeh should have an optional group_by parameter #45

Open
okennedy opened this issue Sep 15, 2019 · 0 comments
Open

to_bokeh should have an optional group_by parameter #45

okennedy opened this issue Sep 15, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@okennedy
Copy link
Collaborator

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'])
@okennedy okennedy added enhancement New feature or request good first issue Good for newcomers labels Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant