79826157

Date: 2025-11-21 05:40:38
Score: 2
Natty:
Report link

Just promoting @felix-benning's amazing tip to a full answer – set include_groups=False, then use df.name to access the group name. NB I only tested this with a single item in groupby, but it sounds like it should work with multiple ones.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @felix-benning's
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: 3wordchant