Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.