code: def get_segment_projects(segment_id):
      
      df = data.all_items
      return (
          df[df['idSegmento'] == str(segment_id)]
          .drop_duplicates(["PRONAC"])
          .values
      )
docs: Returns all projects from a segment.