kearnz / autoimpute

Python package for Imputation Methods
MIT License
237 stars 19 forks source link

Error : X has 6 features per sample; expecting 7 #59

Closed orydatadudes closed 1 year ago

orydatadudes commented 3 years ago

trying to use autoimpute on kaggle favorita data : store_nbr item_nbr unit_sales onpromotion store_nbr_item_nbr 0 17 581742 8.0 NaN 17_581742 1 14 902200 7.0 NaN 14_902200 2 17 581742 7.0 NaN 17_581742 3 14 902200 1.0 NaN 14_902200 4 17 581742 3.0 NaN 17_581742

when doing :

    imp = SingleImputer() # or     imp = MiceImputer(return_list=True)
    imp = MiceImputer(return_list=True)
    imp.fit_transform(temp)

reviving the above error . when removing "store_nbr_item_nbr" every thing is ok