Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Day 1_Data PreProcessing.md #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoanMora
Copy link

@JoanMora JoanMora commented Jun 28, 2020

Pull Request Prelude

Thank you for your contribution :)

Please complete the below steps before filing your PR:

I have read and understood CONTRIBUTING document.
I have read and understood CODE_OF_CONDUCT document.
I have included tests for the changes in my PR. If not, I have included a rationale for why I haven't.
I understand my PR may be closed if it becomes obvious I didn't actually perform all of these steps.

Why this change is necessary and useful

According to the docs

"New in version 0.20: SimpleImputer replaces the previous sklearn.preprocessing.Imputer estimator which is now removed."
This change tries to update the way we handle missing values using scikit-learn. Also notice that we do not have NaN values in the dataset but we have some values equal to 0 so we replace this anomaly with the mean of the column.

According to the [docs](https://scikit-learn.org/stable/modules/generated/sklearn.impute.SimpleImputer.html#sklearn.impute.SimpleImputer)

"New in version 0.20: SimpleImputer replaces the previous sklearn.preprocessing.Imputer estimator which is now removed."
This change tries to update the way we handle missing values using scikit-learn.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant