Skip to content

Commit

Permalink
Added handling of nans for bivariate element
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 9, 2017
1 parent 8ea96dd commit e599b99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/operation/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def _process(self, element, key=None):
elif ymin == ymax:
ymin, ymax = ymin-0.5, ymax+0.5

if len(element) > 1:
data = data[:, np.isfinite(data).min(axis=0)]
if len(data) > 1:
kde = stats.gaussian_kde(data)
if self.p.bandwidth:
kde.set_bandwidth(self.p.bandwidth)
Expand Down

0 comments on commit e599b99

Please sign in to comment.