My dataframe
date Stk A Stk B Stk C Stk D 01.01 0.03 0.0102 0.034 0.083232 02.02 0.05 0.017 0.0578 0.13872 03.03 0.04 0.0136
You can do something like this:
option 1
pd.DataFrame([df.mean(), df.std(), df.var()], index=['Mean', 'Std. dev', 'Variance'])
or something like this:
option 2
df2 = df.describe().loc[['mean', 'std']] df2.loc['variance'] = df2.loc['std']**2