Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

deleting all rows in pandas

# df is a data frame. like df = pd.read_csv('file.csv')
df.drop(df.index[:], inplace=True)
 
PREVIOUS NEXT
Tagged: #deleting #rows #pandas
ADD COMMENT
Topic
Name
4+1 =