[SciPy-user] ragged arrays

David Grant david.grant at telus.net
Sun Jun 4 05:09:48 CDT 2006


Simple question, in Matlab you can do ragged arrays using "cell arrays." Is 
the equivalent thing in scipy/numpy/python just a List of arrays? I made one 
here:

In [55]:a
Out[55]:
[array([0, 0, 0, 0, 0]),
 array([0, 0, 0, 0, 0, 0]),
 array([0, 0, 0, 0]),
 array([1, 1, 1, 1])]



More information about the SciPy-user mailing list