So I have a dataframe, df1, that looks like the following:
A B C 1 foo 12 California 2 foo 22 California 3 bar 8
If you don't care what's in your column C and just want the nth value, you could just do this:
nth
df.groupby('A').agg({'B' : 'sum', 'C' : lambda x: x.iloc[n]})