The Python Oracle

How to flatten only some dimensions of a numpy array

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 Question
00:31 Accepted answer (Score 204)
00:51 Answer 2 (Score 114)
01:18 Answer 3 (Score 70)
02:02 Answer 4 (Score 6)
03:19 Thank you

--

Full question
https://stackoverflow.com/questions/1875...

Accepted answer links:
[numpy.reshape]: http://docs.scipy.org/doc/numpy/referenc...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #numpy #flatten

#avk47