Skip to content

Instantly share code, notes, and snippets.

@kshirsagarsiddharth
Created June 23, 2021 16:28
Show Gist options
  • Select an option

  • Save kshirsagarsiddharth/312ad3c775ac973ac88c1317c16fe878 to your computer and use it in GitHub Desktop.

Select an option

Save kshirsagarsiddharth/312ad3c775ac973ac88c1317c16fe878 to your computer and use it in GitHub Desktop.
temp_df = (users.groupBy('location')
.count()
.select('location',F.col('count').cast('int'))
.toPandas()
.sort_values(by = 'count'))
sns.distplot(temp_df['count'])
plt.title('Location')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment