Suppose that I have a data-frame (
DF) and also I have an array like this:
rm_indexes = np.array([1, 2, 3, 4, 34, 100, 154, 155, 199])
I want to remove row numbers in
DF. One in
rm_indexes means row number one (second row of
DF), three means third row of data-frame, etc. (the first row is 0). The index column of this data-frame is timestamp.
PS. I have many identical timestamps as the index of data-frame.