Created
August 6, 2020 17:48
-
-
Save ShrashtiSinghal/7797dba8ea689aa4f1c4fa81c34ac7dd to your computer and use it in GitHub Desktop.
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
#Log Transformation to remove skewness | |
y = np.log1p(y) | |
for col in x.columns: | |
if np.abs(x[col].skew()) > 0.3: | |
x[col] = np.log1p(x[col]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment