I have a df like below:
President   Start Date  End Date
B Clinton   1992-01-01  1999-12-31
G Bush      2000-01-01  2007-12-31
B Obama     2008-01-01  2015-12-31
D Trump     2016-01-01  2019-12-31 # not too far away!!
I want to create another df, something like this
timestamp   President
1992-01-01  B Clinton
1992-01-02  B Clinton
...
2000-01-01  G Bush
...
Basically I want to create a dataframe which its index is time stamp and then its content is selected based on the condition on the two columns of another df.
I feel there is a way within pandas to do this, but I am not sure how. I tried to use np.piecewise but seems generating the conditions will be very hard for me. How could I do this?
 
     
     
    