79221531

Date: 2024-11-25 03:20:05
Score: 0.5
Natty:
Report link

Did you want something like this?

import openpyxl
import datetime
from openpyxl.utils import get_column_letter

# ...

cell = row[col]
val = cell.value
if isinstance(val, (int, float, datetime.datetime)):
    val = cell.number_format.format(val)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • High reputation (-2):
Posted by: Tom