[Numpy-discussion] array comprehension

Neal Becker ndbecker2 at gmail.com
Fri Nov 4 08:06:32 EDT 2016


I find I often write:
np.array ([some list comprehension])

mainly because list comprehensions are just so sweet.

But I imagine this isn't particularly efficient.

I wonder if numpy has a "better" way, and if not, maybe it would be a nice 
addition?




More information about the NumPy-Discussion mailing list