Double and single brackets in Pandas

Hello,
Regarding The chapter “Exploring Data with Python”, in exercise 9, could someone explain why we use single square brackets instead of doubles for both the lines of code in the answer?

Here is a screenshot:

Thanks

Single brackets creates series. Double brackets creates data frame.