Skip to content

Instantly share code, notes, and snippets.

@McSpooder
Created July 22, 2020 18:28
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 McSpooder/287a3a23644527301f55a383ed49fb5f to your computer and use it in GitHub Desktop.
Save McSpooder/287a3a23644527301f55a383ed49fb5f to your computer and use it in GitHub Desktop.
normal distributions of each label
sMCI_df = clin[clin["label"] == "sMCI"]
pMCI_df = clin[clin["label"] == "pMCI"]
kde_kws = {"color": "orange", "lw": 2, "label": "sMCI", "shade":True}
sns.distplot(sMCI_df["AGE"], kde_kws=kde_kws, hist=False)
kde_kws = {"color": "red", "lw": 2, "label": "pMCI", "shade":True}
sns.distplot(pMCI_df["AGE"], color="magenta", kde_kws=kde_kws, hist=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment