Here is what I am trying to do.
I want to substitute the values of this data frame.

For example. Bernard to be substituted as 1, and then Drake as 2 and so on and so forth. How to iterate through the column to write a function that can do the following.