-
-
Save tcvieira/887fc0ef8daeb0351985a7bc3ae14db8 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
# Computing correlation coefficients | |
x_cols = [col for col in data.columns if col not in ['output']] | |
for col in x_cols: | |
corr_coeffs = np.corrcoef(data[col].values, data.output.values) | |
# Get the number of missing values in each column / feature variable | |
data.isnull().sum() | |
# Drop a feature variable | |
data = data.drop('feature_name', 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment