I'm working with dask
and I need to perform a transformation using compute()
before to continue the workflow. During the second transformation seems that the object change of type and is raising the error 'DataFrame' object has no attribute 'compute'
My current code looks like:
newtypes = {"age":int, "is_superuser":bool}
df = df.astype(newtypes).compute()
# ....
#
....
strtypes = {"age":str, "is_superuser":str)
df = df.astype(strtypes).compute() # Here is raised the exception.