2
I want to copy an element of 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 gives this title Warning.
What am I 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 made:
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']
Excellent!!! Thank you very much!!!!
– Guido Garcia D Angelo
You are welcome. If the answer has solved your problem, please accept the answer by clicking on the check mark on the left side of the answer. See this post for more information https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-reply
– Lorran Sutter