On January 28th at 9:00 UTC Academy will be unavailable for 10 minutes due to planned maintenance break.
Kickstart 2020 with new opportunities! - hours only!Up to 80% off on all courses and bundles.-Close
What DataFrames are
DataFrame columns
DataFrame rows
19. Selecting rows with loc
Filtering rows and columns
Filtering data frames
Sorting rows


Bravo! Now that we have our custom index in place, we can select rows with loc instead of iloc. Take a look:


Or, if you need a DataFrame:


Since we set Phone Number as the new index, the code above allows us to find and return the hospital whose number is 639204484. This can be more convenient than using an integer location.


Modify the code from the previous exercise. Select the row with index Poland and return it as a new DataFrame.

Stuck? Here's a hint!

Use double square brackets.