I have a number of csv files with name following the rule: mydata_hh_mm such as mydata_09_00. hh is hour running from 06 to 09. mm is minute running from 00 to 59. I want to to generate the filename automatically so I can import them into a df? The problem is the 0 when there is only 1 digit in hh or mm, which make this code below not working.
for i in range(7,10):
for j in range(0,60):
file='mydata_' + '0' + str(i) + '_' + str(j) + '.csv'
alldata = pd.concat([alldata, pd.read_csv(rf'....csv')])
print(file)