koalas
koalas copied to clipboard
Attribute Error: module 'numpy' has no attribute 'bool'
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()
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.
can I take it ?
ditto. Please see https://github.com/databricks/koalas/issues/2223#issuecomment-1789845928.