« first day (2001 days earlier)      last day (1340 days later) » 

9:41 PM
0
Q: Creating a (full) ndarray from ragged nested sequences

user76284Suppose we have a ragged, nested sequence like the following: import numpy as np x = np.ones((10, 20)) y = np.zeros((10, 20)) a = [[0, x], [y, 1]] and want to create a full numpy array that broadcasts the ragged subsequences (to match the maximum dimension of any other subsequence, in this case ...

 
9:56 PM
1 message moved from Python
 

« first day (2001 days earlier)      last day (1340 days later) »