티스토리 뷰

공부

[Python] pandas `df.reset_index()`

승가비 2022. 7. 31. 02:44
728x90
df.reset_index()

https://stackoverflow.com/questions/55851802/remove-rows-of-a-dataframe-based-on-the-row-number

 

Remove rows of a dataframe based on the row number

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 rm_indexes from DF. One in

stackoverflow.com

 

728x90
댓글