Quantcast
Channel: Dictionary of numpy array in python - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Dictionary of numpy array in python

$
0
0

I want to create a data structure of empty numpy array something of this sort:

d[1].foo = numpy.arange(x)d[1].bar = numpy.arange(x)d[2].foo = numpy.arange(x)d[2].bar = numpy.arange(x)

What would be the best option ... a list of dictionaries containing numpy arrays?


Viewing all articles
Browse latest Browse all 2

Trending Articles