Oct-13-2018, 12:10 PM
(Oct-13-2018, 09:55 AM)pcsailor Wrote: ok, maybe I'm looking at this wrong.
I'm sorry if this is so basic. I feel pretty dumb right now >:
I thought with the f-string I would only have this code:
rows = range(1, 10) columns = range(1, 5) wb.active.cell(row, col).value = f'row:{row}, column:{col}'
You can process tables as a whole in pandas/numpy - though building initial values may still require either looping or comprehension (comprehension being a looping in not so deceiving disguise)
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.