'Python- Convert multiple list into multiple dataframes

I have a project to get any csv file in one specifc location and convert each csv into one dataframe.

As you can see, it was not necessary to put the names of the files, it simply takes every file it finds and converts it into a list, but now I want to convert those lists into daframes, the name of the dataframes can be generic. Any way to do this? how to get out of the list these dataframes?

import os
import pandas as pd
from IPython.display import display
  
# assign path
path, dirs, files = next(os.walk("/Users/user/Documents/appfolio"))
file_count = len(files)
# create empty list
dataframes_list = []
  
# append datasets to the list 
for i in range(file_count):
    temp_df = pd.read_csv("/Users/user/Documents/appfolio/"+files[i] , encoding='windows-1252')
    dataframes_list.append(temp_df)
      
for dataset in dataframes_list:
    display(dataset)

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source