Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created April 9, 2019 17:59
Show Gist options
  • Save dipanjanS/4da05e71f0a6b769c647a0dd7b8806bf to your computer and use it in GitHub Desktop.
Save dipanjanS/4da05e71f0a6b769c647a0dd7b8806bf to your computer and use it in GitHub Desktop.
host_day_df = logs_df.select(logs_df.host,
F.dayofmonth('time').alias('day'))
host_day_df.show(5, truncate=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment