Pandas - List of Dataframe Names?

Viewed 6319

I've done a lot of searching and can't find anything related. Is there a built-in function to automatically generate a list of Pandas dataframes that I've created?

For example, I've created three dataframes: df1 df2 df3

Now I want a list like: df_list = [df1, df2, df3] so I can iterate through it.

2 Answers

%who_ls DataFrame

This is all dataframes loaded in memory as a list

all_df_in_mem = %who_ls DataFrame

Related