Use iloc : df.iloc[1:] # x y #1 3 4 #3 5 6 #4 7 8 df.iloc[:-1] # x y #0 1 2 #1 3 4 #3 5 6. Use head/tail : df.head(-1) # equivalent to ...
確定! 回上一頁