Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop a column from dataframe

#To delete the column without having to reassign df
df.drop('column_name', axis=1, inplace=True) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #column #dataframe
ADD COMMENT
Topic
Name
3+2 =