code: def final_bearing(self, format='numeric'):
          
          bearings = []
          for segment in self:
              if len(segment) < 2:
                  bearings.append([])
              else:
                  bearings.append(segment.final_bearing(format))
          return bearings
docs: Calculate final bearing between locations in segments.
  
          Args:
              format (str): Format of the bearing string to return
  
          Returns:
              list of list of float: Groups of bearings between points in
                  segments