Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 21, 2021 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/00e961e6340eb2c55ebaf6aee3ee5de5 to your computer and use it in GitHub Desktop.
Save amankharwal/00e961e6340eb2c55ebaf6aee3ee5de5 to your computer and use it in GitHub Desktop.
# Correlation of Weekday and Hour
df = data.groupby(["Weekday", "Hour"]).apply(lambda x: len(x))
df = df.unstack()
sns.heatmap(df, annot=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment