I have a big dataframe, a sample of this df is like as follows:
etf_list = pd.DataFrame({'ISIN':['LU1737652583', 'IE00B44T3H88', 'IE0005042456', 'IE00B1FZS574', 'IE00BYMS5W68'],
                     'ETF_Vendor':['Amundi', 'HSBC', 'iShares', 'iShares', 'Invesco']})
In my local folder 'ETF/Input/', among many other files, the files IE00B1FZS574.csv and IE0005042456.csv are stored.
I would like to create a dataframe by reading the csv files, but only each iteration if the ETF_Vendor in etf_list equals 'iShares'. So I wrote the following for loop:
iShares = [] 
for i, row in etf_list.iterrows():
    if row['ETF_Vendor'] == 'iShares':
        ISIN = row['ISIN']
        iShares.append(ISIN)  # At each iteration, the list is filled with the ISINs for the relevant dataframes
        # Assign downloaded file the name of the relevant ISIN
        df[row['ISIN']] = 'ETF/Input/' + row['ISIN'] + '.csv'
        # Define file as DataFrame, again specifying the ISIN as the name for the DataFrame.
        df[row['ISIN']] = pd.read_csv(df[row['ISIN']], sep=',', skiprows=2, thousands='.', decimal=',')
    else:
        pass
  
The problem with this loop is that the dataframes named like df['IE00B1FZS574']. But I want the dataframes to be named like the ISIN, so like e.g. IE00B1FZS574
How do I have to change my code in order to name the dataframes as e.g. IE00B1FZS574 instead of df['IE00B1FZS574']?
TY in advance.
