I'm sure there must be a simple way of doing this. I have a loop that opens all files in the folder with time
in the title, and I want to be able to open each one as a DataFrame with the name of the file that I opened as the title of the DataFrame. Currently, the only way I know of naming a DataFrame
is creating it (i.e. inf1 = pd.read_csv(fname))
and obviously inf1
is not a spectacularly useful name, plus each time the loop runs inf1 is overwritten.
Thanks in advance!