with the date range of Interest dates = pd.date_ragne(start_date, end_date) df = pd.DataFrame(index = dates) Step 2 Join it with the DataFrame of a stock dfAPPL = pd.read_csv(“apple.csv”) df = df.join(dfAPPL) Step 3 Drop no-trade dates df.dropna(subset=[column_name])