Skip to content

Commit

Permalink
Fix .to.distribution (#4023)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 4, 2019
1 parent 522afa0 commit 0f1560d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/element/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def distribution(self, dim=None, groupby=[], **kwargs):
'if no value dimensions are defined ')
if groupby:
reindexed = self._element.reindex(groupby, [dim])
kwargs['kdims'] = dim
kwargs['vdims'] = None
return reindexed.groupby(groupby, HoloMap, Distribution, **kwargs)
else:
element = self._element
Expand Down

0 comments on commit 0f1560d

Please sign in to comment.