I have three dataframes. I want to select the row by date 2020-10-26 from all 3 dataframes and than I want to create a new dataframe. How to do it?
import pandas as pd
from datetime import date
date1 = date.fromisoformat('2020-10-25')
date2 = date.fromisoformat('2020-10-26')
date3 = date.fromisoformat('2020-10-27')
for x in range(3):
df = pd.DataFrame([(date1,f'Stu{x}j', x+1, f'Varan{x}j', x*400+2),
(date2,f'aja{x}k', x+2, f'Del{x}j', x*634+3),
(date3,f'Aadi{x}t', x+4, f'Mumb{x}j', x*454+4),
(date2,f'har{x}h', x+5, f'bom{x}j', x*124+5)],
columns =['Date','Name', 'Age',
'City', 'Salary'])
df.set_index('Date', inplace = True)
print(df)