arr_baobao
Full Member level 2
Hi
how to change my code so that it can work by storing each csv file i read to data_0,data_1,data_2 accordingly.
in my currently code, it will keep on replace data_i with new csv read.
how to increase the "i" value in data_i so that it will store my csv data properly.
how to change my code so that it can work by storing each csv file i read to data_0,data_1,data_2 accordingly.
in my currently code, it will keep on replace data_i with new csv read.
how to increase the "i" value in data_i so that it will store my csv data properly.
Code Python - [expand] 1 2 3 4 5 6 7 8 #prompt user to input csv file title x=input("please enter the title of your .csv file,key in 'QUIT' when done:") i=0 while x != "QUIT": data_i=pd.read_csv("%s"%x) i+=1 x=input("please enter the title of your .csv file,key in 'QUIT' when done:")