Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc22984

Browse files
author
Steven D'Aprano
committed
Issue 26977, remove unneeded line in pvariance (duplicate call to _ss).
1 parent 18933ed commit cc22984

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Lib/statistics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ def pvariance(data, mu=None):
593593
n = len(data)
594594
if n < 1:
595595
raise StatisticsError('pvariance requires at least one data point')
596-
ss = _ss(data, mu)
597596
T, ss = _ss(data, mu)
598597
return _convert(ss/n, T)
599598

0 commit comments

Comments
 (0)