Pycaret : Got Missing Value error in target col

75 views Asked by At

what if target column contains NaN and when pass it as a target col in Pycaret, it's showing missing value error ; all available Imputation Methods working for rest of cols not for chosen target col.

s = setup(df, target = 'Life expectancy', numeric_imputation="mean")

ValueError: 10 missing values found in the target column: Life expectancy. To proceed, remove the respective rows from the data.

[Dataset](https://i.stack.imgur.com/CSZLH.png)

Target column contains NaN and when pass it as a target col in Pycaret, it's showing missing value error , How to Handle Missing values in Target Column ?

0

There are 0 answers