I have a list of timedelta objects like timedelta(seconds=345) and I need a pythonic way to remove outliers from it. For instance I may have:
timedelta_list = [timedelta(seconds=345), timedelta(seconds=445), timedelta(seconds=1225)]
and I need timedelta(seconds=1225) to be removed from this list. Any ideas on how to achieve this?