Error under Julia 1.0.0/1 when executing mean(1:20) (In Julia 0.6.2 it worked)

The command “mean” ist not working under Julia 1.0.1:

Here it worked fine:

And here not:

Any Idea why this happend and how to fix it?

mean got moved into the standard library Statistics.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.1 (2018-09-29)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Statistics

julia> mean(1:20)
10.5
2 Likes

Thank you. It worked!
Ralf

A general recommendation would be: Do not compare 1.0 results with 0.6 but with its immediate predecessor 0.7. Julia 0.7 prints required warnings and deprecations.

3 Likes

Or use something like Dash to search the docs