79676675

Date: 2025-06-23 19:40:11
Score: 0.5
Natty:
Report link

As of OpenPyXL 3 (requires Python 3.6+), you no longer have to use iter_rows() as in stovfl's accepted answer. There's a much easier way to handle entire rows (and columns) buried in the tutorial section Accessing many cells:

  for cell in ws[1:1]:
    cell.fill = PatternFill(bgColor="FFC7CE", fill_type = "solid")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: B. Shefter