Table 1:
Item Type Order Date Ship Date Purchase Cost
0 Example 2014-08-10 2014-08-10 850.7544
1 Snacks 2014-08-10 2014-08-10 NaN
2 Cosmetics 2/22/2015 2/22/2015 NaN
3 Fruits 2015-09-12 2015-09-12 NaN
4 Personal Care 9/17/2014 9/17/2014 NaN
5 Household 2010-04-02 2010-04-02 NaN
6 Clothes 2/20/2013 2/20/2013 NaN
Table 2:
Item Type Purchase Start Date Purchase End Date Cost Per Unit
0 Baby Food 2010-01-01 2010-05-01 158.2736
1 Beverages 2010-01-01 2010-05-01 36.0620
2 Cereal 2010-01-01 2010-05-01 160.4460
3 Clothes 2010-01-01 2010-05-01 66.6608
4 Cosmetics 2010-01-01 2010-05-01 266.6920
5 Fruits 2010-01-01 2010-05-01 5.5980
6 Household 2010-01-01 2010-05-01 467.7890
7 Meat 2010-01-01 2010-05-01 274.2285
Here I need to fill the Purchase Cost Column In Table 1 Based in Table 2 v Date & Cost Per Unit Column
For example In table 1 Household Date Values between (2010-04-02 ,2010-04-02) so in Table 2 Household Values between (2010-01-01 ,2010-05-01),so from Table 1 Order Date & Ship Date are in the Date range of 'Purchase start Date'& 'Purchase End Date' ,so we can fill the value of Purchase cost as '467.789' ,So how to fill the Purchase cost ?