open_in_new
content_copy
# Get the highest date of each group df.groupby('ID', as_index=False)['Date'].max()