Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Drop a column pandas

df.drop('column_name', axis=1, inplace=True)
#no need to reasign df
#axis 1 is columns, 0 is rows
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Drop #column #pandas
ADD COMMENT
Topic
Name
8+5 =