根据日期和另一个数据框的值创建数据框

我有以下问题:

1) df1 : one DataFrame with the following columns :

 date        Unnamed: 1 Unnamed: 2 Unnamed: 3 ........ Unnamed: 102 
2001-12-28   v1          v2          v4                    v102
2002-1-30    v1          v3         v7                     v102
2002-2-24    v2          v4         v5                    v102
.
.
.
.
2020-05-20   v1           v8          v9                    v102

In this DataFrame, I have the date and the names(v1,v2,...,v102) of the stocks present in a portfolio in that date.

2) df2: in the second "DataFrame" :

date               code          price

2002-04-21         v1            50
2002-04-23         v1            50.2
2002-04-23         v2            10.1
.                  .              .
(955809 rows later).              .
.                  .              .
2020-05-20        v3             14.3

In my second DataFrame, I have the name and the price of each stock for the following date

3) I want to create several DataFrames each with a 3 month period, starting by the date in the first row of the df1 and then moving 3 months forward, with only the stocks that are present in the df1 row that matches the start date.

例如 :

df3:开始日期2001-12-28

date               code          price

2001-12-28        v1            50
2001-12-29        v1            50.2
2001-12-29        v2            13.1
.                  .              .
.                  .              .
.                  .              .
2020-03-28        v3             6.5

如果你们可以指出我的方向,那我对如何开始或如何紧凑地写作一无所知。