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

Not able to fill missing values #63

Closed
abhishekmamdapure opened this issue Apr 27, 2020 · 5 comments
Closed

Not able to fill missing values #63

abhishekmamdapure opened this issue Apr 27, 2020 · 5 comments
Labels
question Further information is requested

Comments

@abhishekmamdapure
Copy link

abhishekmamdapure commented Apr 27, 2020

Hello,

According to Missing Value Imputation section, I am trying out to fill the missing values but the syntax is not mentioned. I am in search of the syntax to impute the missing values as mentioned on the page.

I tried to use the following code but that does not work.

import pycaret
from pycaret.datasets import get_data
hepatitis = get_data('hepatitis')
# Importing module and initializing setup
from pycaret.classification import *
clf1 = setup(data = hepatitis, target = 'Class',numeric_imputation='mean',categorical_imputation = 'mode')

The above code did not work and the missing values still exist in the dataset. Kindly, provide the syntax for the same.

Thanks

@pycaret
Copy link
Collaborator

pycaret commented Apr 27, 2020

Can you please share the dataset and the code you are using?

@pycaret pycaret added the question Further information is requested label Apr 27, 2020
@abhishekmamdapure
Copy link
Author

Hello,

I am using the same dataset mentioned in the pycaret which is 'hepatitis' and the code that I have used is mentioned above.

I am looking for the syntax to fill the missing values using the pycaret library.

@abhishekmamdapure
Copy link
Author

Hello,

Can I kindly get any update on this?

@pycaret
Copy link
Collaborator

pycaret commented Apr 29, 2020

@abhishekmamdapure The missing values are imputed automatically. See an example how you can see imputed values.

from pycaret.datasets import get_data
data = get_data('hepatitis')

from pycaret.classification import *
clf1 = setup(data, target = 'Class')
clf1[0]

See how NaN is imputed on instance 3 in STERIOD column.

@WebDevelopmentLabs
Copy link

I am also having the same problem and it is not imputing the missing values. I am using a heart disease dataset. Shall I share that here?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants