I have the following list of events that have a binary outcome (i.e. 1 or 0):
events=['A', 'B', 'C']
outcomes=[True,False]
in each scenario, only one of these outcomes can be True. Is there a way to get an array like:
array=([True,False,False],[False,True,False], [False,False,True])
i know i can use itertools product with repeat but this will produce unwanted scenarios like [True,True,True] etc. in the array. ideally i would not have to filter it down as i expect my 'events' list to be much longer than the above.
Any one have any ideas? I can have 1 or 0 values in the array instead, I am not fussed.