I have two dataframes:
products
+------------+--------------------+
| item_name  | item_tags          |
+------------+--------------------+
| blue_shirt | summer,winter,blue |
|            |                    |
+------------+--------------------+
| red_skirt  | spring,summer      |
+------------+--------------------+
and orders
+------------+
| item       |
+------------+
| blue_shirt |
+------------+
| red_skirt  |
+------------+
and I want to create a new column in orders: when products.item_name == orders.item, I want to take the value of products.item_tags and add it to orders.
I've tried:
orders['ItemTags'] = products.query("{0}=={1}".format(orders['item'], products['item_name']))['Tags']
But it gives me an error.
