How do I get the name of a DataFrame and print it as a string?
Example:
boston (var name assigned to a csv file)
boston
import pandas
Here is a sample function: 'df.name = file` : Sixth line in the code below
def df_list(): filename_list = current_stage_files(PATH) df_list = [] for file in filename_list: df = pd.read_csv(PATH+file) df.name = file df_list.append(df) return df_list