I want to group a Pandas Dataframe by multiple columns. Each Row has an integer, a Name, and an additional numerical value. I want the final Dataframe to include every row in which the Name has the highest integer.
values = {'Int': [1,1,1,2,2,1],
'Name': ['Tom', 'Jim', 'Jan','Tom', 'Tom', 'Lucas'],
'Bill':[0.5,0.2,0.2,0.7, 0.8, 0.2]}
df = pd.DataFrame.from_dict(values)
Int Name Bill
0 1 Tom 0.5
1 1 Jim 0.2
2 1 Jan 0.2
3 2 Tom 0.7
4 2 Tom 0.8
5 1 Lucas 0.2
By grouping the dataframe only the 0th row should disappear. Row 3 and 4 should still be included in the dataframe.