Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop a column from dataframe

#working with "text" syntax for the columns:
df.drop(['column_nameA', 'column_nameB'], axis=1, inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #column #dataframe
ADD COMMENT
Topic
Name
2+4 =