Categories
dataframe pandas python

In pandas, how can I get a DataFrame as the output while I sum the DataFrame

While I sum a DataFrame, it returns a Series:

In [1]: import pandas as pd
In [2]: df = pd.DataFrame([[1, 2, 3], [2, 3, 3]], columns=['a', 'b', 'c'])
In [3]: df
Out[3]:
a b c
0 1 2 3
1 2 3 3
In [4]: s = df.sum()
In [5]: type(s)
Out[5]: pandas.core.series.Series

I know I can construct a new DataFrame by this Series. But, is there any more “pandasic” way?