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