def segment(df):
    """
    Parse the data to find pivot points between teams.
    Returns a list of integers i where each i represents
        the row index of a new team (new game)
    """
    segments = [0]
    currentTeam = df.iloc[0][5]
    lastrow = 0
    for index, row in df.iterrows():
        # playerName = "%s %s " % (row['playFNm'], row['playLNm']) 
        team = row['teamAbbr']
        if team != currentTeam:
            segments.append(index)
            currentTeam = team

        lastrow = index

    # last index
    segments.append(lastrow + 1)

    return segments