I am a beginner of Python.
Now, I have files "Pref1" and "Pref2".
I would like to read files and define data frame's names with for-loop fuction (there are so many files).
I tried below.
for i in [1,2]:
f"df{i} = pd.read_excel('Pref{i}.xlsx', sheet_name= 'Sheet2').dropna(axis=0)
However, codes do not work. If you have good ideas, please tell me. Thank you.