How do I create a decile column in Python polars?
Let’s say I have a column of FICO scores. I’d like to create another column FICO_DECILE that ranks the FICO scores descending and assigns a decile group, i.e. FICO=850 would have FICO_DECILE=1, and something like FICO=360 would have FICO_DECILE=10.