DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas drop columns by index
cols = [1,2,4,5,12] df.drop(df.columns[cols],axis=1,inplace=True)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#drop
#columns
#index
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit