Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val df15 = tweets
- .groupBy("handle")
- .sum("retweet_count", "favorite_count")
- .withColumn("favoritos_retweets", $"sum(retweet_count)" + $"sum(favorite_count)")
- .sort(desc("favoritos_retweets"))
- display(df15)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement