Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created April 10, 2019 15:35
Show Gist options
  • Save dipanjanS/de0b76e99d739589636dd01777ea947c to your computer and use it in GitHub Desktop.
Save dipanjanS/de0b76e99d739589636dd01777ea947c to your computer and use it in GitHub Desktop.
hourly_avg_errors_sorted_df = (not_found_df
.groupBy(F.hour('time')
.alias('hour'))
.count()
.sort('hour'))
hourly_avg_errors_sorted_pd_df = hourly_avg_errors_sorted_df.toPandas()
c = sns.catplot(x='hour', y='count',
data=hourly_avg_errors_sorted_pd_df,
kind='bar', height=5, aspect=1.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment