df.Date = pd.to_datetime(df.Date)
idx = df.groupby('TestName').Date.agg(['idxmin', 'idxmax']).stack().unique()
print(idx)
Filter entries of pandas dataframe based on presence (absence) of entries older than a date