I want to copy an element from a dataframe and insert it into another dataframe.
In essence there is a dataframe with name x area and another that I need to load with the data of the area, from the comparison of the name in the first dataframe. The code is working, but give this title warning.
What I'm doing:
for i in range(0,len(NOVOS_ABERTOS_VIVO)):
for j in range(0,len(AREA_VERSUS_COLABORADOR)):
if NOVOS_ABERTOS_VIVO.loc[i]['Originator'] == AREA_VERSUS_COLABORADOR.loc[j]['Originator']:
TEMP=AREA_VERSUS_COLABORADOR.loc[j]['Área']
NOVOS_ABERTOS_VIVO.loc[i]['Área']=str(TEMP)
I also did:
for i in range(0,len(NOVOS_ABERTOS_VIVO)):
for j in range(0,len(AREA_VERSUS_COLABORADOR)):
if NOVOS_ABERTOS_VIVO.loc[i]['Originator'] == AREA_VERSUS_COLABORADOR.loc[j]['Originator']:
AREA_VERSUS_COLABORADOR.loc[j]['Área']=NOVOS_ABERTOS_VIVO.loc[i]['Área']