i got a code from a colleague. in one of the lines i found a for-loop with a rarely configuration, see below. Can you explain me why "i" stays in front of the for-loop?
ix = [i for i in range(data.shape[1]) if i != 23]
i got a code from a colleague. in one of the lines i found a for-loop with a rarely configuration, see below. Can you explain me why "i" stays in front of the for-loop?
ix = [i for i in range(data.shape[1]) if i != 23]