Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
how to remove last 2 rows in a dataframe
Elizabeth
Programming language:
Whatever
2021-06-20 15:50:14
0
Q:
how to remove last 2 rows in a dataframe
bartolo-otrit
Code:
Whatever
2021-06-12 04:53:59
df1 = df.iloc[:3]
0
Tags
data
row
remove
how
dataframe
rows
last
Related
location of last row dataframe
how to combine delete rows based on condition on another dataframe
drop the last row of a dataframe
print last n rows of dataframe
New to Communities?
Join the community