Hello everyone, there are two tables writing in the panda function df = df.merge(input_sku, how='inner', on='KEY1')
df = df.merge(input_sku, how='inner', on='KEY1')
however, I need only one column from the second table. How to specify it?
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')
Source: https://ru.stackoverflow.com/questions/961611/More articles:How to make the data in the loop each time added to the arrayTransferring data from one form to anotherHow to change the cursor in the drop zoneHow to override the overloaded base class operatorsI use the Pagination.js plugin and I don’t understand how to connect two paginators on one pageIn one of thecells, the offset is due to the cell aboveHow to implement the requirement for a unique column value in PosgreSQL?Binding editor Gutenberg to custom post typeInterface in adapter, KotlinWhen you create a new project in the AppCode error pops upAll Articles