Hey everyone, hope you are doing great these days. I have a difficult problem with my data processing and hope you could help me:
I have some input data of the following form: Number of entries to come, Entries...
Example:
At the same time I have an array with only zero/false entries and now I always need a true/1 entry at the position corresponding to the entries of the first array. Example:
Is there a smooth way to iterate over my input data and add a True/1 to the second array at the corresponding position in the array below?
I have some input data of the following form: Number of entries to come, Entries...
Example:
Quote:(...)
4 1 3 4 5
2 2 5
1 6
(...)
At the same time I have an array with only zero/false entries and now I always need a true/1 entry at the position corresponding to the entries of the first array. Example:
Quote:array([[True, False, True, True, True, False],
[False, True, False, False, True, False],
[False, False, False, False, False, True]])
Is there a smooth way to iterate over my input data and add a True/1 to the second array at the corresponding position in the array below?