Skip to main content

r/Numpy


Localization of The NumPy Documentation
Localization of The NumPy Documentation

Hello r/Numpy,

I am the author of the Localize The Docs organization. And I’m glad to announce that the 🎉 numpy-docs-l10n 🎉 project is published now:

The goal of this project is to translate The NumPy Documentation into multiple languages. Translations are contributed via the Crowdin platform, automatically synchronized with the GitHub repository, and can be previewed on GitHub Pages.

We welcome anyone interested in documentation translation to join us. If the target language is not supported in the project yet, please submit an issue to request the new language. Once the requested language is added, you can start translating!

See the announcement post for more details.


That new car feeling. Experience the crafted interior of the roomier, All-New Mazda CX-5.​
media poster



The entire array and field names, or individual fields as function arguments?
The entire array and field names, or individual fields as function arguments?

What's the best for speed?

Pseudocode:

myFunc0 (myNdarray, fields):
    myNdarray[2:len-2, 'field2'] = myNdarray[0:len-4, fields[0]] * myNdarray[4:len, fields[1]]
    return myNdarray

myNdarray = myFunc0(myNdarray, ['field0',  'field1'])

myFunc1 (field0, field1):
    field2 = np.zeros...
    field2 = field0[0:len-4] * field1[4:len]
    return field2

myNdarray['field2'] = myFunc1(myNdarray['field0'],  myNdarray['field1'])