First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 12 years ago

SLOtoSF gravatar image

import numpy as np a = np.array([['apple', 'frog'],[[3,2], 3]], dtype=object); a /// array([[apple, frog], [[3, 2], 3]], dtype=object)

click to hide/show revision 2
No.2 Revision

import numpy as np a = np.array([['apple', 'frog'],[[3,2], 3]], dtype=object); a /// a

array([[apple, frog], [[3, 2], 3]], dtype=object)

Sage Matrices have entries as ring elements.... so this can be done in python.

click to hide/show revision 3
No.3 Revision

import numpy as np a = np.array([['apple', 'frog'],[[3,2], 3]], dtype=object); a

array([[apple, frog], [[3, 2], 3]], dtype=object)

Sage Matrices have entries as ring elements.... so this can be done in python.numpy instead.