I got a little confused with syntaxes we use to manipulate data in pandas. I used two different notations in this exercise and seem to have gotten similar output returned.
motor_countries_df = f500.loc[motor_bool,["country"]]
motor_countries_series = f500.loc[motor_bool,"country"]
The first line of code returned a dataframe. Can someone explain why dataframe type was returned? And when one syntax is preferred over the other?