Fix typo in function argument.
@@ -9,7 +9,7 @@ def geometric_mean(iterable):
vals = np.array(iterable)
# Shortcut to return 0 when any element of the input is zero without
# performaning (and printing a warning about) a division by zero below.
- if not np.all(all):
+ if not np.all(vals):
return 0
a = np.log(vals)
return np.exp(a.sum() / len(a))
