In encountered this problem when converting a json object to a csv:
I now have two lists:
list_A is a list of strings. Each string is a name of df.
You can associate them with a dict:
dict
df_dict = dict(zip(list_A, list_B)) df_dict['df1'].head() ## Returns the first 10 rows of list_B[0]