df.mean(axis=-1) function code example Example: return mean of df as dataframe df.mean().to_frame().T