https://mingredbestcheapprice.blogspot.com/2024/01/pandas-for-groups-of-rows-where-2-or.html