Skip to content

Commit

Permalink
Removing redundant call to gaussian_kde (#3163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ek-nath authored and philippjfr committed Nov 8, 2018
1 parent 4d66363 commit 00abaf0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion holoviews/operation/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def _process(self, element, key=None):
kde = stats.gaussian_kde(data)
except LinAlgError:
return element_type([], selected_dim, vdims, **params)
kde = stats.gaussian_kde(data)
if self.p.bandwidth:
kde.set_bandwidth(self.p.bandwidth)
bw = kde.scotts_factor() * data.std(ddof=1)
Expand Down

0 comments on commit 00abaf0

Please sign in to comment.