I have two data frames with different no of rows as below.
my first data frame(df1):
name   value
1000 |  1
633  |  2
1233 |  3
1333 |  1
my second data frame(df2):
min       max 
500    |  999
1000   | 1499
1500   | 1999
my desired output: min and max columns should be added to the df1 by selecting the proper range
name   value    min   max 
1000 |  1    | 1000  | 1499
633  |  2    | 500   | 999
1233 |  3    | 1000  | 1499
1333 |  1    | 1000  | 1499
how can I code this using python
 
     
    