Tilman Krummeck <tilman.krumm...@googlemail.com> added the comment:
My suggestion is not to set k=1 when omitted but to assign it a random value that is something between 0 and the maximum possible value which is: sum(counts) if counts else len(population) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46190> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com