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

Predicting bulldozer price - Converting string to category #56

Open
LeeharikaSiddabattuni opened this issue Aug 5, 2023 · 2 comments
Open

Comments

@LeeharikaSiddabattuni
Copy link

error1
error2
Instead of getting objects in an order I am getting bound method exception. The output is not as shown in the course. Please solve this and let me know.

@Sreeram0303
Copy link

same error i too faced the issue is due to the update in api.types.is_string_dtype method in recent update they made it to detect string type strictly but in the course they used it for both string and object. So the fix will be use pd.api.types.is_object_dype(content)
Hope this will help and solve the issue

@Shuraimi
Copy link

Thanks @Sreeram0303 . I was searching for this from a lot time if only I'm facing this issue or somebody else also has admitted this issue.

When I used pd.api.types.is_string(df['UsageBand']), I get output as False and when I tried on another column which has no missing values, I got True

So I thought that if we have missing values and when I call the above function, I'll get False.

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

3 participants