Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
drop last row pandas
Luke
Programming language:
Python
2021-05-25 03:34:18
0
Q:
drop last row pandas
Johnny Appleseed
Code:
Python
2021-09-15 13:32:38
df.drop(df.tail(n).index,inplace=True) # drop last n rows
2
Tags
row
pandas
last
Related
pandas df by row index
pandas change last row
how to get a row from a dataframe in python
pandas how to get last index
New to Communities?
Join the community