def select(x):
    for key, game in zip(keywords, games):
        if key in x:
            return game
df['GameName'] = df['user-agent'].apply(select)
Python Pandas: таблица поиска путем поиска подстроки