Lesson 8 of 13 · 2 min
Deleting Rows and Columns
# Delete a row
df.drop(0) # drop row with index 0 (axis=0 default)
# Delete a column
df.drop('Invoice ID', axis=1)
# Delete using del
del df['Invoice ID']
# Drop multiple columns
df.drop(['Branch', 'City'], axis=1)
