I have several pandas DataFrames of the same format, with five columns.

I would like to sum the values of each one of these dataframes using `df.sum()`. This will create a Series for each Dataframe, still with 5 columns. 

My problem is how to take these Series, and create another Dataframe, one column being the filename, the other columns being the five columns above from `df.sum()`

```
import pandas as pd
import glob

batch_of_dataframes =  glob.glob("*.txt")

newdf = []
for filename in batch_of_dataframes:
    df = pd.read_csv(filename)
    df['filename'] = str(filename)
    df = df.sum()
    newdf.append(df)

newdf = pd.concat(newdf, ignore_index=True)

```

This approach doesn't work unfortunately. 'df['filename'] = str(filename)' throws a TypeError, and the creating a new dataframe `newdf` doesn't parse correctly. 

How would one do this correctly? 

How do you take a number of `pandas.Series` objects and create a `DataFrame`?