I am using koalas in databricks and trying to decile the data.
Therefore I used
df[\'Decile\']= ks.qcut(df[\'Id\'], q = 10, labels = False)
I