Search notes:

Python Library: SciPy

#  Returns an array of the modal (most common) value in the passed array.

import scipy.stats

print scipy.stats.mode( [  4, 5, 4, 6, 4, 2, 4, 4, 4 ])  # 4 is most common, it appears six times
# (array([ 4.]), array([ 6.]))
Github repository about-python, path: /libraries/scipy/stats/mode.py

Installing

I seem to have had some success installing SciPy with
$ python3 -m pip install scipy

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758201606, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/libraries/SciPy/index(44): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78