LIB-3 Pandas Foundation
Why is there a need to use the .loc in this case? "To filter the
'US' population from the
'origin' column, you need to specify
'origin' == 'US' inside your call to
The correct answer given was us = df.loc[df['origin'] == 'US']
Wouldn't df[df['origin'] == 'US'] work just as well?