Skip to content

Instantly share code, notes, and snippets.

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

  • Save kshirsagarsiddharth/156204a07c6145d0b34c08aa8ecfc121 to your computer and use it in GitHub Desktop.

Select an option

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