Rename columns with special signs and numbers
Rename columns with special signs and numbers Question: I have this df = pd.DataFrame( {‘st’: {0: ‘0’, 1: ‘>0-<10’, 2: ‘>=10-<20’, 3: ‘>=20’}} ) which yields st 0 >0-<10 >=10-<20 >=20 Each entry of [st] column represents a category. I would like to replace categories as follows: st 1 2 3 4 to achieve this, …