Read in multiple csv into separate dataframes in Pandas
问题 I have a long list of csv files that I want to read as dataframes and name them by their file name. For example, I want to read in the file status.csv and assign its dataframe the name status . Is there a way I can efficiently do this using Pandas? Looking at this, I still have to write the name of each csv in my loop. I want to avoid that. Looking at this, that allows me to read multiple csv into one dataframe instead of many. 回答1: You can list all csv under a directory using os.listdir