我编写了这个简单的函数来获取 nan 值的百分比(它很容易与 Pandas 配合使用,但我想要 dask)
@delayed(pure=True)
def nanas():
return ((df.isna().sum()/df.shape[0])*100)
然后调用它
nanas().compute()
我尝试将延迟和计算放在不同的地方,但我得到了类似的东西:
Delayed('mul-702603f442eca568be1e3870be16b005')
每一列都这样,好像我还需要计算一些东西