famafrench.utils.portRetAvg

famafrench.utils.portRetAvg(df)[source]

Compute a simple average across different columns.

Parameters

df (pandas.DataFrame) – Dataset with columns to average over.

Returns

dfavg – Dataset with the averaged columns.

Return type

pandas.DataFrame