Subset df by column index

 avatar
user_6939821
python
3 years ago
78 B
11
Indexable
#select columns with index positions in range 0 through 3
df.iloc[:, 0:3]

Editor is loading...