Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas select columns by index

#select columns with index positions 1 and 3
df.iloc[:, [1, 3]]
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #pandas #select #columns #index
ADD COMMENT
Topic
Name
4+8 =