• + 0 comments

    Given a list of numbers [1, 1, 1, 2, 2], the mode method in stats package has an output like this:

    ModeResult(mode=array([1]), count=array([4]))

    the print method asks to output the first array in an integer form.