-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Code StyleCode style, linting, code_checksCode style, linting, code_checksIO Excelread_excel, to_excelread_excel, to_excelgood first issue
Description
Right now the header style of excel exports is defined as global to the pandas/io/formats/excel.py
module:
pandas/pandas/io/formats/excel.py
Line 37 in 1a12c41
header_style = {"font": {"bold": True}, |
Because this exists outside of the ExcelFormatter
class where it is used it is way more difficult to override the default than it needs to be. If this was moved from global scope to instance scope it would allow users to theoretically subclass the ExcelFormatter
and easily define their own style for the header
This could also eliminate the need for any work on #19386
Metadata
Metadata
Assignees
Labels
Code StyleCode style, linting, code_checksCode style, linting, code_checksIO Excelread_excel, to_excelread_excel, to_excelgood first issue
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]Make header_style an Instance Variable of ExcelFormatter[/-][+]Make header_style an Property of ExcelFormatter[/+][-]Make header_style an Property of ExcelFormatter[/-][+]Make header_style a Property of ExcelFormatter[/+]ENH: Making header_style a property of ExcelFormatter #22758 (#22759)
ENH: Making header_style a property of ExcelFormatter pandas-dev#22758 (
DataFrame.to_excel
to output unformatted excel file #54154