original_docstring: 
          find team ids if by team name. Used as bookies have only names...
          :param team_name:
          :return:list of possible ids, most comonnly only single value
          :raises not found exception, if teamname is not in db
          
docstring: find team ids if by team name.
docstring_tokens: find team ids if by team name .
code: def lookup_team_ids(self, team_name) -> list:
          """
          find team ids if by team name. Used as bookies have only names...
          :param team_name:
          :return:list of possible ids, most comonnly only single value
          :raises not found exception, if teamname is not in db
          """
          orig_name = copy(team_name)
          team_name = self.clear_name(team_name)
  
          if team_name == "ex-Fragsters" or team_name == "ex-fragsters":
              team_name = "fragsters"
          elif team_name == "Ninjas in Pyjamas" or team_name == "ninjas in pyjamas":
              team_name = "nip"
          elif team_name == "LDLC.com" or team_name == "ldlc.com":
              team_name = "ldlc"
  
          df = pd.read_sql(
              "SELECT * FROM team where name = %(t_name)s".format(team_name,),
              con=self.engine,
              params={"t_name": team_name},
          )
          if len(df) == 0:
              raise TeamNotFound(f"Team name {orig_name} -> {team_name}: not found")
  
          return df.drop_duplicates()["id"].to_list()
code_tokens: def lookup_team_ids ( self , team_name ) -> list : orig_name = copy ( team_name ) team_name = self . clear_name ( team_name ) if team_name == "ex-Fragsters" or team_name == "ex-fragsters" : team_name = "fragsters" elif team_name == "Ninjas in Pyjamas" or team_name == "ninjas in pyjamas" : team_name = "nip" elif team_name == "LDLC.com" or team_name == "ldlc.com" : team_name = "ldlc" df = pd . read_sql ( "SELECT * FROM team where name = %(t_name)s" . format ( team_name , ) , con = self . engine , params = { "t_name" : team_name } , ) if len ( df ) == 0 : raise TeamNotFound ( f"Team name {orig_name} -> {team_name}: not found" ) return df . drop_duplicates ( ) [ "id" ] . to_list ( )
short_docstring: find team ids if by team name.
short_docstring_tokens: find team ids if by team name .
comment: """
          find team ids if by team name. Used as bookies have only names...
          :param team_name:
          :return:list of possible ids, most comonnly only single value
          :raises not found exception, if teamname is not in db
          """