Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#python
Question
Python shape manipulation functions
Answer
Flatten, Resize, Stack , Reshape, Split
Flatten: array.ravel()
Reshape: array.reshape(3,4) #3 rows, 4 columns
Resize: array.resize(2,6) #2 resizes again to 2rows, 6 columns
Split: np.hsplit(array,2) #splits array to 2
Stack: np.hstack((array1,array2,2))

Tags
#python
Question
Python shape manipulation functions
Answer
?

Tags
#python
Question
Python shape manipulation functions
Answer
Flatten, Resize, Stack , Reshape, Split
Flatten: array.ravel()
Reshape: array.reshape(3,4) #3 rows, 4 columns
Resize: array.resize(2,6) #2 resizes again to 2rows, 6 columns
Split: np.hsplit(array,2) #splits array to 2
Stack: np.hstack((array1,array2,2))

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.