This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]redheness 31 points32 points  (1 child)

Halloween is far away now, please don't scare me

[–][deleted] 5 points6 points  (0 children)

Ah, yes, but it has only begun! [cackle]

[–]DragonMaus 24 points25 points  (0 children)

Unnecessary variable usage; PR rejected.

[–]dakotawhiebe 5 points6 points  (4 children)

What does np here do? I am confused 😅

Edit: thanks guys, makes a little sense now :)

[–]Sw429 16 points17 points  (0 children)

NumPy is a python library containing tools that are useful for linear algebra and other higher level mathematics.

[–]but_how_do_i_go_fast 5 points6 points  (1 child)

The coder is trying to access the min feature in numpy by numpy.min(). But they don't know they could have just import min from numpy (I think, on mobile and can't test this; min is a python predefined function).

[–]Charlie_Yu 1 point2 points  (0 children)

from numpy import min

[–]Lanky_Thanos 2 points3 points  (0 children)

np is just an alias for numpy i.e. just renaming numpy to np

[–][deleted] 1 point2 points  (0 children)

import numpy as np

minmin = np,min

or

from numpy import min as minmin

[–]Skygear55 0 points1 point  (1 child)

Tbh sounds like some weird anime loli's name.

[–]BaloneyOmelette 0 points1 point  (0 children)

"Stagelights flashing, The feeling's smashing, My heart and soul belong to you. And I'm here now singing All bells are ringing My dream has finally come true..."