-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Allow using apply method with method strings #3554
Conversation
d7677e9
to
c01f443
Compare
@jlstevens Ready to review. |
Other than two minor suggestions ( |
3e9e14d
to
ff3ee9d
Compare
Tests are passing now and I'll go ahead and merge. Excited to try it out! |
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. |
Implements the suggestion outlined in holoviz/datashader#723. This allows the apply method to accept strings which refer to methods on the object, e.g.:
After some discussion @jlstevens and I have decided to make
.apply
a namespace accessor with the following convenience methods:.apply.opts
.apply.select
.apply.reduce
.apply.aggregate
This also means we can deprecate
HoloMap.reduce
andHoloMap.sample
which are outliers in our API (which are inherited but are not actually usable on DynamicMap) and can be achieved by chaining apply and collapse methods.