I have the following large dataframe (df) that looks like this:
df
ID date PRICE 1 10001 19920103 14.500 2 10001 1
Another one line code is df.groupby('ID').apply(lambda group: group.iloc[1:, 1:])
df.groupby('ID').apply(lambda group: group.iloc[1:, 1:])
Out[100]: date PRICE ID 10001 2 19920106 14.5 3 19920107 14.5 10002 5 19920109 14.5 6 19920110 14.5 10003 8 19920114 14.5 9 19920115 15.0