Hello everyone, there are two tables writing in the panda function df = df.merge(input_sku, how='inner', on='KEY1')

however, I need only one column from the second table. How to specify it?

    1 answer 1

    The easiest way is to leave only the required columns in the attached DataFrame - the column (s) participating in the join and the column you want to join:

     df = df.merge(input_sku[['KEY1','data_column_name']], on='KEY1')