Pandas random sampling: stratified and weighted

Random Sample per group in pandas featured icon

How to Group by multiple columns, count and map in Pandas featured icon

How to Group By Multiple Columns in Pandas

GroupBy and Count Unique Rows in Pandas