I have a dataframe with columns that have a bunch of numbers ranging from 1 - 100. I want to split the values so that if a value is between 1 - 10, they are replaced with 0. If a value is between 11 - 20, they are replaced with 1. If the value is between 21 - 30, they are replaced with 2, and so on.
How can I do this with Pandas?
What I've tried:
dating["attr1_1"] = dating["attr1_1"][0:11] = 0
dating["attr1_1"] = dating["attr1_1"][11:21] = 1