I am trying to do something like: I have this dataframe
Name Distance
James 2
James 1
Maria 5
Thomas 2
Thomas 1
James 4
I also have the dataframe that contais all the names, if it helps.
And retrieve 3 separate dataframes that should look like this:
James 2 1 4
Thomas 2 1
Maria 5
Notice that I don't want to sum it, just get the values and I the list is much longer of names, so doing one by one is not optimal.