I simply want to add data frames that are stored in a dictionary. intuitively I would want to loop the dictionary. However I do not have an initial dataframe with zero values. What is the best way to accomplish that elegantly. Currently I am doing the following:
dict = {'B' :df1, 'C':df2, 'D': df3}
total = dict['B'] + dict['C'] + dict['D']
the dfs are initialized from reading from a csv file and there could be more than 3.
How can I accomplish this in a loop?