title: Set Dataframe Index from row values of another Dataframe
body: <p>I have 2 dataframes. One contains the values and the other one contains the date.</p>
  <p>df1:
  <a href="https://i.stack.imgur.com/ex9hA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ex9hA.png" alt="enter image description here" /></a></p>
  <p>df2:
  <a href="https://i.stack.imgur.com/dq0QL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dq0QL.png" alt="enter image description here" /></a></p>
  <p>I want to create a loop where for each row a new dataframe gets created where the index is the row values (dates) of df2 and in the 1st column there are the values of the row of df1.</p>
  <p>My ultimate goal is to plot these dataframes and create a similar plot as below: Grey lines represent the df created by the loop. Is this a good way to plot such data?</p>
  <p><a href="https://i.stack.imgur.com/6aAnx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6aAnx.png" alt="enter image description here" /></a></p>