https://mobhitsbestcheapprice.blogspot.com/2022/07/custom-groupby-based-on-column-values.html
Custom Groupby Based On Column Values