7.1. Exercises

Practicing Selecting

Instructions:
Running a coding exercise for the first time, could take a bit of time for everything to load. Be patient, it could take a few minutes.

When you see ____ in a coding exercise, replace it with what you assume to be the correct code. Run it and see if you obtain the desired output. Submit your code to validate if you were correct.

Let’s try selecting a specific column.

Tasks:

  • Select all the rows from column Salary only and save it as player_cost. (Hint: you don’t need .loc[] here)
  • Display it.
Hint 1
  • Are you using the correct dataframe labels?
  • Are you using double [] brackets?
  • Are you using “quotations”?
Fully worked solution: