mardi 18 janvier 2022

Why some methods of ndarray are present as an equivalent function in top-level of numpy?

I see there is ndarray.reshape and also numpy.reshape and the documentation mentions them to be equivalent. Similarly for ravel. If that is the case, why did they make unnecessary duplicate of these methods in numpy namespace while also breaking one of the Zen principle

There should be one-- and preferably only one --obvious way to do it.

Aucun commentaire:

Enregistrer un commentaire