traffic/core/flight.py
def longer_than(
        self, value: Union[str, timedelta, pd.Timedelta], strict: bool = True
    ) -> bool:
        """Returns True if flight duration is shorter than value."""
        if isinstance(value, str):
            value = pd.Timedelta(value)
        return self.feature_gt(attrgetter("duration"), value, strict)
Returns True if flight duration is shorter than value.
Returns True if flight duration is shorter than value.
Returns True if flight duration is shorter than value .
def longer_than(
        self, value: Union[str, timedelta, pd.Timedelta], strict: bool = True
    ) -> bool:
        if isinstance(value, str):
            value = pd.Timedelta(value)
        return self.feature_gt(attrgetter("duration"), value, strict)
def longer_than ( self , value : Union [ str , timedelta , pd . Timedelta ] , strict : bool = True ) -> bool : if isinstance ( value , str ) : value = pd . Timedelta ( value ) return self . feature_gt ( attrgetter ( "duration" ) , value , strict )
Returns True if flight duration is shorter than value.
Returns True if flight duration is shorter than value .
"""Returns True if flight duration is shorter than value."""
self
value
Union[str, timedelta, pd.Timedelta]
strict
bool