Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

max date by group pandas

df_new = df[df.groupby('col')['date'].transform('max') == df['date']]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #max #date #group #pandas
ADD COMMENT
Topic
Name
2+6 =