For that, we can use the reset_index method: df.reset_index(drop=True) It creates a new DataFrame with a sequential index (figure D.15). df ...
確定! 回上一頁