'Mean of certain column data in python

enter image description here

Hi guys, just wondering if I could get the mean of the "Tax" column for a certain "Year". So for example: I would want to get the mean of the "Tax" for the "Year" 2020 and 1999.

thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source