I ultimately want to group by items that have multiple shipping requirements vs ones that have just 1.
I have a pandas df column that looks like this:
ID #(column name = ID)
1111
1111,2222
1111,2222
2222,4444,3333
2222,4444
How can I create a dictionary object or mapping layer(open to all suggestions) where I can pass any value if it matches criteria and changes to the key value?
For example if the value is 1111, 4444 then change it to Express Shipping, Standard Shipping and have that be in the same dataframe.
I ultimately want to group by items that have multiple shipping requirements vs ones that have just 1.
1. shipping_num = (1111, 2222, 3333, 4444).
2. shipping_map = (Express shipping, Standard Shipping, 2-day shipping, 1-day shipping)
*NEW_SHIPPING MAP COLUMN*
Express shipping
Express shipping, Standard Shipping
Standard Shipping, 1-day shipping,2-day shipping
Standard Shipping, 1-day shipping
Thanks for looking!