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 data_preproc_functions.py to solve conversion to float issue #498

Merged
merged 2 commits into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def group_status(x):
df['credit_history'] = df['credit_history'].apply(lambda x: group_credit_hist(x))
df['savings'] = df['savings'].apply(lambda x: group_savings(x))
df['employment'] = df['employment'].apply(lambda x: group_employ(x))
df['age'] = df['age'].apply(lambda x: np.float(x >= 26))
df['age'] = (df['age'] >= 26).astype(float)
df['status'] = df['status'].apply(lambda x: group_status(x))

return df
Expand Down
Loading