Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas print column by index

#select columns with index positions 1 and 3
df.iloc[:, [1, 3]]


        points	rebounds
0	11	11
1	7	8
2	8	10
3	10	6
4	13	6
5	13	5
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #pandas #print #column #index
ADD COMMENT
Topic
Name
9+6 =