我在数据库中使用考拉,并试图对数据进行标记。
所以我用了
df['Decile']= ks.qcut(df['Id'], q = 10, labels = False)
我得到了AttributeError:模块'databricks.koalas‘没有属性'qcut’
这附近有工作吗?
发布于 2022-08-27 06:47:44
考拉不支持qcut。虽然您可以在PySpark中进行本机操作,但请参见What are alternative methods for pandas quantile and cut in pyspark 1.6。
https://stackoverflow.com/questions/65911091
复制相似问题