Skip to content

Make header_style a Property of ExcelFormatter #22758

@WillAyd

Description

@WillAyd
Member

Right now the header style of excel exports is defined as global to the pandas/io/formats/excel.py module:

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

Activity

added this to the Contributions Welcome milestone on Sep 19, 2018
changed the title [-]Make header_style an Instance Variable of ExcelFormatter[/-] [+]Make header_style an Property of ExcelFormatter[/+] on Sep 19, 2018
changed the title [-]Make header_style an Property of ExcelFormatter[/-] [+]Make header_style a Property of ExcelFormatter[/+] on Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @WillAyd

      Issue actions

        Make header_style a Property of ExcelFormatter · Issue #22758 · pandas-dev/pandas