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

Improve groupby behavior for operation histogram #6172

Merged
merged 6 commits into from
Apr 5, 2024
Merged

Improve groupby behavior for operation histogram #6172

merged 6 commits into from
Apr 5, 2024

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Apr 3, 2024

Fixes #6170
Fixes #6171

TODO:

  • Add tests

@hoxbro hoxbro added the type: bug Something isn't correct or isn't working label Apr 3, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 98.21429% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 88.70%. Comparing base (342d81c) to head (42d3d0f).
Report is 2 commits behind head on main.

Files Patch % Lines
holoviews/operation/element.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6172      +/-   ##
==========================================
+ Coverage   88.68%   88.70%   +0.01%     
==========================================
  Files         316      316              
  Lines       66072    66117      +45     
==========================================
+ Hits        58598    58649      +51     
+ Misses       7474     7468       -6     
Flag Coverage Δ
ui-tests 23.78% <12.50%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -754,6 +755,9 @@ class histogram(Operation):
groupby = param.ClassSelector(default=None, class_=(str, Dimension), doc="""
Defines a dimension to group the Histogram returning an NdOverlay of Histograms.""")

groupby_range = param.Selector(default="shared", objects=["shared", "separated"], doc="""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better names here are welcome.

@hoxbro hoxbro requested a review from philippjfr April 3, 2024 17:59
@hoxbro hoxbro marked this pull request as ready for review April 3, 2024 18:09
hoxbro and others added 2 commits April 5, 2024 14:06
Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
@hoxbro hoxbro enabled auto-merge (squash) April 5, 2024 12:43
@hoxbro hoxbro merged commit 4208e73 into main Apr 5, 2024
11 checks passed
@hoxbro hoxbro deleted the hist_fixes branch April 5, 2024 13:44
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
3 participants