-1
I’m trying to map the value "Others" to a "Career" column, according to some criteria. For example, when the column contains the Recycle Bin or Helper value, I want that value replaced by the Other value. The command below is running without error:
aip['Carreira'] = aip['Carreira'].map({'Chefe de Limpeza': 'Outros', 'Lixeiro': 'Outros', 'Auxiliar de Limpeza': 'Outros', 'Ajudante': 'Outros', 'Carreira Externa': 'Outros' })
The problem is that when you rotate this command, all other columns are replaced by the NAN value, that is, it is not only the Career column that is affected, but all the others. How to heal?