to_excel should (optionally) freeze panes #15160

Closed
jnothman opened this Issue Jan 19, 2017 · 4 comments

Comments

Projects
None yet
4 participants
Contributor

jnothman commented Jan 19, 2017

DataFrame.to_excel() is currently helpful in styling column and row headers distinctly from values. One other simple feature Excel provides to manage headers is "freeze panes". Panes can be frozen such that the column and row headers are fixed. This is achieved in openpyxl with worksheet.freeze_panes = top_left_value_cell and in xlwt with worksheet.freeze_panes(bottommost_header_row, leftmost_header_col).

I think making this available, as an option or by default, would give a valuable usability boost to the exported Excel spreadsheets.

Contributor

jreback commented Jan 19, 2017

sure lots of thinks that pandas could do with the updates in the openpyxl style API. love to have PR's!

jreback added this to the Next Major Release milestone Jan 19, 2017

Contributor

chris-b1 commented Jan 20, 2017

Here's the same for xlsxwriter. My preference would be not have it as a default, but agree it would be a nice addition.

http://xlsxwriter.readthedocs.io/example_panes.html

Contributor

jnothman commented Jan 21, 2017

@jreback jreback modified the milestone: 0.20.0, Next Major Release Feb 7, 2017

jreback closed this in 9b5d848 Feb 16, 2017

Contributor

jnothman commented Feb 16, 2017

@jreback jreback added a commit that referenced this issue Mar 7, 2017

@jeffcarey @jreback jeffcarey + jreback CLN: Moved freeze_panes validation to io/excel.py (#15160)
follow up to #15160

Author: Jeff Carey <jeff.carey@gmail.com>

Closes #15592 from jeffcarey/enh-15160-touchup2 and squashes the following commits:

81cb86f [Jeff Carey] Cleaned up freeze_panes validation code
a802fc7 [Jeff Carey] Moved freeze_panes validation to io/excel.py
1123982

@AnkurDedania AnkurDedania added a commit to AnkurDedania/pandas that referenced this issue Mar 21, 2017

@jeffcarey @AnkurDedania jeffcarey + AnkurDedania ENH: Added ability to freeze panes from DataFrame.to_excel() (#15160)
closes #15160

Author: Jeff Carey <jeff.carey@gmail.com>

Closes #15291 from jeffcarey/enh-15160 and squashes the following commits:

cef8fce [Jeff Carey] ENH: Added ability to freeze panes from DataFrame.to_excel()
43aba17

@AnkurDedania AnkurDedania added a commit to AnkurDedania/pandas that referenced this issue Mar 21, 2017

@jeffcarey @AnkurDedania jeffcarey + AnkurDedania CLN: Moved freeze_panes validation to io/excel.py (#15160)
follow up to #15160

Author: Jeff Carey <jeff.carey@gmail.com>

Closes #15592 from jeffcarey/enh-15160-touchup2 and squashes the following commits:

81cb86f [Jeff Carey] Cleaned up freeze_panes validation code
a802fc7 [Jeff Carey] Moved freeze_panes validation to io/excel.py
69902bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment