Skip to content

Commit 9e29e3c

Browse files
rhettingergpshead
andauthored
Update Lib/statistics.py
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
1 parent 34075e0 commit 9e29e3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def pstdev(data, mu=None):
646646
mss_numerator = mss.numerator
647647
mss_denominator = mss.denominator
648648
except AttributeError:
649-
raise ValueError
649+
raise ValueError('inf or nan encountered in data')
650650
if issubclass(T, Decimal):
651651
return _decimal_sqrt_of_frac(mss_numerator, mss_denominator)
652652
return _float_sqrt_of_frac(mss_numerator, mss_denominator)

0 commit comments

Comments
 (0)