For a df table like below,
A B C D 0 0 1 1 1 1 2 3 5 7 3 3 1 2 8
why are the double brackets needed for selecting specific columns after
Adding to previous responses, you could also use df.iloc accessor if you need to select index positions. It's also making the code more reproducible, which is nice.
df.iloc