[SciPy-user] ragged arrays

David Grant david.grant at telus.net
Sun Jun 4 06:09:48 EDT 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