tratamento = df.join(de_para.set_index('LINHA'), on='codlinha', lsuffix='_1', rsuffix='_1', how='inner')
tratamento2 = df.join(dexpara.set_index ('DIA'), on='dia', lsuffix='_1', rsuffix='_1', how='inner')
unificado = pd.concat(['tratamento', 'tratamento2'])
unificado.to_excel('C:\\Users\\gabriel.brito\\Desktop\\Teste\\teste2.xlsx')
os.system('C:\\Users\\gabriel.brito\\Desktop\\Teste\\teste2.xlsx')
I try to merge, concat and join but i've failled in everything i tried out. Can anyone help me please?
The script error is down below
TypeError: cannot concatenate object of type '<class 'str'>'; only Series and DataFrame objs are valid
the Syntax "Unificado" is what i've tried to use to unify those 2 informations
enter image description here *Those two informations it what i've looking for, but the data is empty it need to apears related to the datas in the file, if i tried the code "tratamento2" alone the data shows up, but merging those two don't show up. If you guys need more information i'm here.