0

df2 = df.loc[df['AustralianPort'] == 'Melbourne']

This syntax enables me to select one row, but how can I select multiple.

When I try df2 = df.loc[df['AustralianPort'] == 'Melbourne', 'Sydney', 'Brisbane','Adelaide', 'Perth']

It prompts me with an error.

Any thoughts on how to select multiple rows??

0 Answers0