python问题求助大佬,作业题感激不尽

图片说明
我用的这个软件

import pandas as pd
import datetime as dt

tickers = ['GSPC', 'IBM', 'DELL', 'AMZN']
data0 = pd.read_csv('GSPC.csv', index_col=0)
close0 = pd.DataFrame(data0.Close)
data1 = pd.read_csv('IBM.csv', index_col=0)
close1 = pd.DataFrame(data1.Close)
data2 = pd.read_csv('DELL.csv',index_col=0)
close2 = pd.DataFrame(data2.Close)
data3 = pd.read_csv('AMZN.csv',index_col=0)
close3 = pd.DataFrame(data3.Close)
close = pd.merge(close0, close1, left_index=True, right_index=True)
close = pd.merge(close, close2, left_index=True, right_index=True)
close = pd.merge(close, close3, left_index=True, right_index=True)
close.columns = tickers
close.head(10)

要把这个代码用for语句实现 有大佬会吗
急求

https://www.baidu.com/link?url=BtkPpfvHkrY_HEdH4Jmg5VAGMRYSu-gBTlxLMxNRQCPsn7tZsKPVJLchmUINLIu5&wd=&eqid=b8f80c10000201ca000000045f6d7f16