0

I am probably using poor search terms when trying to find the answer to this problem but I hope that I can explain by posting an image.

I have a weekly df (left table) and I am trying to get the total average across all cities within one week and the average of certain observations based on 2 lists (right table)

excel representation of the dataframe

Can anyone please help figure out how to do this?

  • 1
    Please, [post your data as text, not as an image](https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-errors-when-asking-a-question). Also please read: [how to make a good reproducible pandas example](https://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples) – BioGeek Apr 28 '21 at 09:58
  • What's a _**total** average_? Are you taking averages and then adding them, or something? Welcome to StackOverflow. Show what you have tried so far (code) and be specific about which part is giving you trouble. Read: [How to create a Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example). – aneroid Apr 28 '21 at 10:21

0 Answers0