DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
drop every other column pandas
#We would like to drop every other column data = data.loc[:, np.arange(len(data.columns)) %2 == 0]
PREVIOUS
NEXT
Tagged:
#drop
#column
#pandas
ADD COMMENT
Topic
COMMENT
Name
3+9 =
Submit