Answers for "pandas delete 10 rows"

1

deleting all rows in pandas

# df is a data frame. like df = pd.read_csv('file.csv')
df.drop(df.index[:], inplace=True)
Posted by: Guest on July-06-2021
1

remove 0th row pandas

df1 = df.iloc[1:]
Posted by: Guest on November-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language