Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas groupby get all but first row

df[~df.index.isin(df.groupby('ID').head(1).index)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #groupby #row
ADD COMMENT
Topic
Name
6+1 =