Python: NumPy Maximum Dimensions!
By trial and error, I found the maximum dimensions of a NumPy array.
The maximum is 32 dimensions.
If you make an array of 99 dimensions, numpy.ndim will still return 32 showing 32 dimensions mixed with a list.
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[list([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]])]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
32 dimensions!
Also, with an array of anything over 99 dimensions numpy.ndim will return a memory error.
I tested 100 dimensions and 1000 dimensions both gave MemoryError!
#NumPy #maximum #dimensions
Sur cette page du site, vous pouvez voir la vidéo en ligne Python: NumPy Maximum Dimensions! durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur __init_ one underscore 06 juin 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 54 fois et il a aimé 0 téléspectateurs. Bon visionnage!