Python Grouping Dataframe But Mean Function Is Not Running Stack

Python Grouping Dataframe But Mean Function Is Not Running Stack