Subset df by column index

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

Editor is loading...