Dec-24-2020, 10:08 AM
good morning i'm trying to find the differences between two dataframes the promo 'df1' has only one column which is 'codbar, where the equivalent in' def2 'and' 'sku' in practice I have to find the equivalences of codbar in the sku column for then change the values on the other two columns stock_quantity and stok_status. i'm trying but i can't do it i need help
import pandas as pd data1 = pd.read_csv('eurogold.csv' ) data2 = pd.read_csv('woo.csv') df1 = pd.DataFrame(data1,columns=['codbar']) df2 = pd.DataFrame(data2,columns=['sku','stock_quantity','stock_status']) print(df1.equals(df2))