- #1
- 2,168
- 193
I have a 3 data column ##(X, Y, Z)## ranges from ##(min, max)##. For example,
##X = (0, 5)##, ##Y=(0, 3)##, ##Z=(0, 2)##. By using them I need to create a numpy array in the form of
##[(0, 0, 0), (0, 0, 1), (0, 0, 2), (0, 1, 0), (0, 1, 1), (0, 1, 2), (0, 2, 0)...]##
So in total there will be ##6 \times 4 \times 3 = 72## data points.
Is there a simple command to do this ?
##X = (0, 5)##, ##Y=(0, 3)##, ##Z=(0, 2)##. By using them I need to create a numpy array in the form of
##[(0, 0, 0), (0, 0, 1), (0, 0, 2), (0, 1, 0), (0, 1, 1), (0, 1, 2), (0, 2, 0)...]##
So in total there will be ##6 \times 4 \times 3 = 72## data points.
Is there a simple command to do this ?