I am attempting to create a feature in my dataset that is True if it is within a given threshold \'T\' of an event. I have gotten it to work, but it is pretty inefficient,