## Pandas – Calculate Mean and Variance

Pandas – Calculate Mean and Variance Question: For a current project, I would like to calculate both the mean and variance for a group of values. My existing code calculates the mean through .agg(‘mean’). I tried to add , ‘var’ inside the bracket, which however yielded an error: f"numpy operations are not valid with " …