I have a numpy array and you want to delete some columns based on the index. Is there a built-in function for it, or some elegant way for such an operation?
Sort of:
arr = [234, 235, 23, 6, 3, 6, 23]
elim = [3, 5, 6]
arr = arr.drop[elim]
output: [234, 235, 23, 3]
source
share