Answers for "drop specifc rows in panda"

9

drop last row pandas

df.drop(df.tail(n).index,inplace=True) # drop last n rows
Posted by: Guest on June-23-2020
0

remove all odd row pandas

#to skip every other row

df.iloc[::2]
Posted by: Guest on January-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language