Double and single brackets in Pandas

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:


Single brackets creates series. Double brackets creates data frame.