fork download
  1. from scipy import stats
  2.  
  3. idades = [18,22,18,29,32,17,19]
  4. x = stats.mode(idades)
  5. print(x)
Success #stdin #stdout 0.56s 64640KB
stdin
Standard input is empty
stdout
ModeResult(mode=array([18]), count=array([2]))