Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created April 9, 2019 17:34
Show Gist options
  • Save dipanjanS/1eb7f876b6d9df4ada367af4d54497df to your computer and use it in GitHub Desktop.
Save dipanjanS/1eb7f876b6d9df4ada367af4d54497df to your computer and use it in GitHub Desktop.
paths_df = (logs_df
.groupBy('endpoint')
.count()
.sort('count', ascending=False).limit(20))
paths_pd_df = paths_df.toPandas()
paths_pd_df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment