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

fillna() issue #71

Open
khannadheeraj opened this issue Jun 6, 2022 · 0 comments
Open

fillna() issue #71

khannadheeraj opened this issue Jun 6, 2022 · 0 comments

Comments

@khannadheeraj
Copy link

khannadheeraj commented Jun 6, 2022

At page 89 while doing label encoding. Nan value is filled with "NONE" which is string so it is giving error "argument must be.of string or float" . I can be fix either by
df.ord_2.fillna(np.nan)
or
lbl_enc.fit_transform(df.ord_2.values.astype(str))

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