Skip to content

Instantly share code, notes, and snippets.

@arjay55
Created August 20, 2019 11:49
Show Gist options
  • Save arjay55/91f42768d88bd5dae7d2a25f3febbdb4 to your computer and use it in GitHub Desktop.
Save arjay55/91f42768d88bd5dae7d2a25f3febbdb4 to your computer and use it in GitHub Desktop.
Correl1
dfcorr = dfrel.corr()
heatmap(dfrel.corr())
dftemp00 = dfcorr.loc[:'mutual_unit'].abs()
sumvars = dftemp00.apply(sum, axis=1)
dftemp00/sumvars.values[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment