Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete a column in pandas

# Remove the unwanted columns
data.drop(['Country code', 'Continental region'], axis=1, inplace=True)
data.head()
Source by app.dataquest.io #
 
PREVIOUS NEXT
Tagged: #delete #column #pandas
ADD COMMENT
Topic
Name
2+4 =