DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas select columns by index list
#select columns with index positions 1 and 3 df.iloc[:, [1, 3]]
Source by www.statology.org #
PREVIOUS
NEXT
Tagged:
#pandas
#select
#columns
#index
#list
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit