Created
April 12, 2020 09:03
-
-
Save FelixChop/bae1fbb333e80309f5590f4944265d6e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pd.DataFrame({ | |
'variable': variables, | |
'coefficient': model.coef_[0] | |
}) \ | |
.round(decimals=2) \ | |
.sort_values('coefficient', ascending=False) \ | |
.style.bar(color=['grey', 'lightblue'], align='zero') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment