koalas icon indicating copy to clipboard operation
koalas copied to clipboard

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

Open akanshkatyayan opened this issue 2 years ago • 3 comments

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()

akanshkatyayan avatar Dec 20 '22 18:12 akanshkatyayan

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.

KepingYan avatar Dec 23 '22 01:12 KepingYan

can I take it ?

tsafacjo avatar Nov 01 '23 21:11 tsafacjo

ditto. Please see https://github.com/databricks/koalas/issues/2223#issuecomment-1789845928.

itholic avatar Nov 01 '23 23:11 itholic