[Tutor] What is random.triangular() used for

Steven D'Aprano steve at pearwood.info
Sun Oct 24 23:48:56 CEST 2010


Richard D. Moores wrote:
> NameError: name 'np' is not defined
[...]
> but where do I get np?


I believe that it is common in the scientific python world to do this:

import numpy as np

and then use np.FUNCTION instead of numpy.FUNCTION.

-- 
Steven


More information about the Tutor mailing list