I have a pandas data frame. eg:
df=
paper id year
0 3 1997
1 3 1999
2 3 1999
3 3 1999
4 6 1997
so on
I want the maximum year corresponding to a paper id given as input. For example, if the paper id given is 3
, I want 1999
as the answer.
How can I do this?