I want to read out data from different files in one folder. The files have the names: "1.csv", "2.csv", "3.csv" ... "96.csv". But instead of reading them in from the top to the bottom, it reads in "1.csv", "10.csv", "11.csv"... "2.csv", "21.csv". Anyone knows how to fix this problem?
Thanks!
def csv_readout_folder(path):    
    os.chdir(path)     
    files = glob.glob(path +'/'+'*.csv')
    all_data = pd.DataFrame()
    for f in files:
        data = csv_readout(path,f)
    
        all_data = pd.concat([all_data, data])
           
    return all_data
 
     
    