SyntaxFix
Write A Post
Hire A Developer
Questions
df[df.columns[i]]
where i is the position/number of the column(starting from 0).
i
So, i = 0 is for the first column.
i = 0
You can also get the last column using i = -1
i = -1