I have an array of values like this:
0129 4589 4878 7895
I would like to iterate through the entire array and leave one row out in each turn to have this:
0129 4589 4878
0129 4589 7895
0129 4878 7895
4589 4878 7895
…. and so forth
I am aware of the itertools ‘combinations’ in python. Is there away I can apply the funciton to a whole row of the array rather than indivdual values of a row?
You have the answer I think
would produce this output
i.e.,