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

Attribute Error: module 'numpy' has no attribute 'bool' #2226

Open
akanshkatyayan opened this issue Dec 20, 2022 · 3 comments
Open

Attribute Error: module 'numpy' has no attribute 'bool' #2226

akanshkatyayan opened this issue Dec 20, 2022 · 3 comments

Comments

@akanshkatyayan
Copy link

Reading a CSV file using Koalas is giving the below error. I believe this is because NumPy has deprecated np.bool in release 1.24.0

Attribute Error: module 'numpy' has no attribute 'bool'

     # BooleanType

--> elif tpe in (bool, np.bool, "bool", "?"):
return types.BooleanType()

@KepingYan
Copy link

I also encounter this problem when run ks.range(0, 100). If I change 'np.bool' to 'np.bool_', AttributeError: module 'numpy' has no attribute 'float' will appear.

@tsafacjo
Copy link

tsafacjo commented Nov 1, 2023

can I take it ?

@itholic
Copy link
Contributor

itholic commented Nov 1, 2023

ditto. Please see #2223 (comment).

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

4 participants