I have a dataframe df:
cat1 | cat2 | cat3 | year | quartal | month | y a | aa | aaa | 2020 | 3 | 9 | 12 b | bb | bbb | 2019 | 2 |