For example, I have a data frame as below with columns gender, year, count.
gender year count Man 2020 220 Man 2019 206 Man 2018 216