[Tutor] What is random.triangular() used for
Richard D. Moores
rdmoores at gmail.com
Mon Oct 25 01:13:38 CEST 2010
On Sun, Oct 24, 2010 at 14:48, Steven D'Aprano <steve at pearwood.info> wrote:
> 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.
Yup. That was it. <http://www.rcblue.com/Misc/plt.jpg> Beautiful!
Dick
More information about the Tutor
mailing list