Last active
December 11, 2019 20:52
-
-
Save canimus/76a5f78830b730442e9c3d4ff95e0943 to your computer and use it in GitHub Desktop.
Ploting FaceGrid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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