I have a dataframe name "detalhe" with several columns and one is named: "Concelho". I have a list of unique values of "Concelho" named "Concelho ADENE" and I would like to replace each occurrence with a different list called "INE".
Concelho ADENE INE
0 ABRANTES Abrantes
1 AGUEDA Águeda
2 AGUIAR DA BEIRA Aguiar da Beira
3 ALANDROAL Alandroal
4 ALBERGARIA-A-VELHA Albergaria-a-Velha
... ... ...
284 VIMIOSO Vimioso
285 VINHAIS Vinhais
Both lists have the same length and each entrance correspond (they are alphanumeric sorted) (I also have a csv file with both lists as 2 parallels columns.)
I tried:
detalhe= pd.read_csv('Detalhe.csv')
detalhe['Concelho'].replace(Concelho ADENE,INE)
detalhe
AttributeError: 'Series' object has no attribute '_replace_columnwise'