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

Cleaning Data set leads to same value for two different attribute values #3

Open
zahidirfan opened this issue Jan 18, 2023 · 0 comments

Comments

@zahidirfan
Copy link

The cleaning of the credit data set is simply using the last digit. However, in the case of Attribute number 4: Purpose. This simplistic scheme does not work and produces '0' for both the values A40 (cars) and A410 (others). Here is an explanation from the data set document.

Attribute 4: (qualitative)
Purpose
A40 : car (new)
A41 : car (used)
A42 : furniture/equipment
A43 : radio/television
A44 : domestic appliances
A45 : repairs
A46 : education
A47 : (vacation - does not exist?)
A48 : retraining
A49 : business
A410 : others

df.iloc[:, i - 1] = df.iloc[:, i - 1].apply(lambda x: encoding_category(x))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant