Search
 
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
Name
5+3 =