A software design principle: keep business logic (calculations) separate from presentation logic (formatting). In the Excel workflow context: compute in pandas, format with openpyxl.