DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+6 =
Submit