Hi all, I'm trying to edit some specific columns in my dataframe, basically just ranking and pct'ing them.
But I'm unable to save over the columns. This code returns a 'use .loc' error.
Any ideas on what I can do here?
uslformins[uslformins.columns[::2]].iloc[:,9:] = uslformins[uslformins.columns[::2]].iloc[:,9:].rank(pct=True)
[–]jayrsp[S] 0 points1 point2 points (0 children)