Skip to content

Instantly share code, notes, and snippets.

@canimus
Last active December 11, 2019 20:52
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 canimus/76a5f78830b730442e9c3d4ff95e0943 to your computer and use it in GitHub Desktop.
Save canimus/76a5f78830b730442e9c3d4ff95e0943 to your computer and use it in GitHub Desktop.
Ploting FaceGrid
import seaborn as sns
import pandas as pd
from collections import OrderedDict
x = df[df.statusChangeBy>10].groupby([pd.Grouper(freq="W", key="statusChangedDate"), "Name"]).size().compute()
x = x.reset_index()
x.columns = ["Date", "Team", "Total"]
x = x.sort_values(by="Date")
plt.figure(figsize=(30,30))
p = sns.FacetGrid(x, col="Team", col_wrap=10, height=3)
p = p.map(plt.plot, "Date", "Total", marker=".")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment