def groupby_count_rename()

in src/python/bigtable.py [0:0]


def groupby_count_rename(df, col):
    return df.groupBy(col) \
             .count() \
             .withColumnRenamed(col, "item") \
             .withColumnRenamed("count", col)