Created
December 29, 2017 14:25
-
-
Save joseph-allen/feedab3228497ebbaebd15cdc059b818 to your computer and use it in GitHub Desktop.
skewness
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 | |
g = sns.distplot(dataset["Feature"], color="m", label="Skewness : %.2f"%(dataset["Feature"].skew())) | |
g = g.legend(loc="best") | |
# Apply log to Feature to reduce skewness distribution | |
# dataset["Feature"] = dataset["Feature"].map(lambda i: np.log(i) if i > 0 else 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment