I wonder if there is a logical explanation why when i tried to use the “multimode” function of statistics class, it was rejected with a
“module ‘statistics’ has no attribute ‘multimode’” error.
I used “print(”\nMethods in Statistics Class", dir(statistics), “\n”)" to print the methods within statistics and sure enough, mutimode is not there.
Methods in Statistics Class [‘Decimal’, ‘Fraction’, ‘StatisticsError’, ‘all’, ‘builtins’, ‘cached’, ‘doc’, ‘file’, ‘loader’, ‘name’, ‘package’, ‘spec’, ‘_coerce’, ‘_convert’, ‘_counts’, ‘_exact_ratio’, ‘_fail_neg’, ‘_find_lteq’, ‘_find_rteq’, ‘_isfinite’, ‘_ss’, ‘_sum’, ‘bisect_left’, ‘bisect_right’, ‘collections’, ‘groupby’, ‘harmonic_mean’, ‘math’, ‘mean’, ‘median’, ‘median_grouped’, ‘median_high’, ‘median_low’, ‘mode’, ‘numbers’, ‘pstdev’, ‘pvariance’, ‘stdev’, ‘variance’]
Yet, there numerous online demos using it.
I run Spyder 5.0.3