79089126

Date: 2024-10-15 08:46:34
Score: 1.5
Natty:
Report link

Another simple way could be to use query method, combined with f-string and NOT.

It should be like: df.query(f"not {col}.str.contains('{word}')")

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yanick N'depo