All Questions
1 question
2
votes
1
answer
3k
views
How to fill a 2D Python numpy array with values from a generator?
Based on the answers here it doesn't seem like there's an easy way to fill a 2D numpy array with data from a generator.
However, if someone can think of a way to vectorize or otherwise speed up the ...