I am creating test and training data for an algorithm. I have data in different csv files I want to create training and test data from that.
I have imported all the csv files to the pandas dataframe using
dfs = [pd.read_csv(file) for file in datafiles]
dfs[1] has the first dataframe dfs[2] second and so on
I would like to assign them to different data frame in the format Xtest1 is dfs[1], Xtest2 is dfs[2] and so on till the end of the files
Can anyone help do it using a loop or any other idea