Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop column pandas

df.drop(['column_1', 'Column_2'], axis = 1, inplace = True) 
# Remove all columns between column index 1 to 3
df.drop(df.iloc[:, 1:3], inplace = True, axis = 1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #column #pandas
ADD COMMENT
Topic
Name
1+1 =