Doubt about NumPy | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Doubt about NumPy

Hi. I have a doubt about NumPy. Is there a difference between np.sum(array) and array.sum()? I know the output is the same, but is one faster than the other or something? And the same with all the other functions that you can do in both ways.

12th May 2022, 1:10 AM
Marcos Ezequiel Hernández Damaglia
Marcos Ezequiel Hernández Damaglia - avatar
2 Answers