Let say I have below 2 pandas dataframes
import pandas as pd
dat1 = pd.DataFrame({'A' : [1999, -11234], 'B' : [88888, -345], 'C' : [-7777, -8978], 'D' : [7777, -8978]})
dat2 = pd.DataFrame({'A' : [999, 1234], 'B' : [8888, -345], 'C' : [-7777, -8978]})
Collection = [dat1, dat2]
In my original case, I actually have an arbitrary number of dataframes in the list Collection. Now I want to add all such dataframes with element-by-element addition, based on row and column matches (if in a dataframe, if a column and/or row is missing then corresponding value will be assumed as 0 in such addition).
Is there any direct method/function available to achieve this?