I would like to make all possible combinations with elements from 5 different arrays.
However, when I ran my codes, the error showed the number was too high. Would there be a solution to this problem?
Here is my code:
import numpy as np a=np.arange(1000000000) b=np.arange(2000000000) c=np.arange(2000000000) d=np.arange(1000000000) e=np.arange(1000000000) from itertools import product iterables = [a,b,c,d,e] total_combi_index= for t in product(*iterables): total_combi_index.append(t)
Source: Python Questions