databricks / koalas

Koalas: pandas API on Apache Spark
Apache License 2.0
3.32k stars 356 forks source link

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

Open akanshkatyayan opened 1 year ago

akanshkatyayan commented 1 year ago

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 commented 1 year ago

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 commented 8 months ago

can I take it ?

itholic commented 8 months ago

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