def get_columns_for_table(df):
    """Calculate columns for summary table
    Team, Owner, W, L, WPCT, AWP, PF, PA, PF/G, PA/G, DIFF

    :param df: data frame with wins, agg_wins, team names, ranks, points
    :return: data frame with calcualted columns
    """
    df['Owner'] = df.apply(lambda x:
        f"{x.get('firstName')} {x.get('lastName')}", axis=1)
    df['W'] = df.apply(lambda x: x.get('wins'), axis=1).astype(int)
    df['L'] = df.apply(lambda x: x.get('games') - x.get('wins'), axis=1
        ).astype(int)
    df['REC'] = df.apply(lambda x: f"{x.get('W')}-{x.get('L')}", axis=1)
    df['WPCT'] = df.apply(lambda x: f"{x.get('wins') / x.get('games'):.3f}",
        axis=1)
    df['AWP'] = df.apply(lambda x:
        f"{x.get('agg_wins') / x.get('agg_games'):.3f}", axis=1)
    df['PF'] = df.apply(lambda x: f"{x.get('points_for'):.1f}", axis=1)
    df['PA'] = df.apply(lambda x: f"{x.get('points_against'):.1f}", axis=1)
    df['PF/G'] = df.apply(lambda x:
        f"{x.get('points_for') / x.get('games'):.1f}", axis=1)
    df['PA/G'] = df.apply(lambda x:
        f"{x.get('points_against') / x.get('games'):.1f}", axis=1)
    df['DIFF'] = df.apply(lambda x:
        f"{(x.get('points_for') - x.get('points_against')) / x.get('games'):.1f}"
        , axis=1)
    return df
