79459142

Date: 2025-02-22 06:02:26
Score: 1.5
Natty:
Report link

I found this to be almost as fast as using query and you don't need to create a string.

df[df.apply(lambda r : all(r[t]==m for t,m in your_dict.items()), axis=1)]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: RoCaSo