Data Science, Python Programming, Snowflake, Data Engineering, Apache Spark.
sum(count) in descending order. How can we achieve this? total_stars_per_repo = stars_df.group_by("repo_id")\ .agg(sum("count"))\ .with_column_renamed('"sum(count)"',"sum_of_stars")\ .sort("sum_of_stars", ascending=False) total_stars_per_repo.show(10) - - - - - - - - - - - - - - - |"REPO_ID"