question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOC: Mention "StyleFrame" package in "DataFrame.to_excel()"

See original GitHub issue

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_excel.html

Documentation problem

It is not a “problem” but enhancement.

Suggested fix for documentation

Do suggest the StyleFrame package to be more flexibel with formating the excel output.

btw: I won’t suggest to integrate StyleFrame into pandas. Formatting export outputs is not the job of pandas and I assume you agree with this. But is is an often mentioned “problem” in the internet community that the pandas excel output lacks of the possibility to formatting.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
rhshadrachcommented, Jun 28, 2022

I’m not sure we want to be including third party libraries in the API docs unless it’s necessary - it seems to be blurring the lines between ecosystem and API docs. +1 on adding to the ecosystem page.

0reactions
datapythonistacommented, Aug 10, 2022

Just realized that the original point here was to add the external StyleFrame class to to_excel, not to the Ecosystem page. While it doesn’t seem a good idea to do that, looks like a good idea to add our pandas Styler to it. I created #48019 for it (I thought it was better to create a new issue better than reopen this).

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas.io.formats.style.Styler.to_excel
Add styles to Excel sheet. Notes. For compatibility with to_csv() , to_excel serializes lists and dicts to strings before writing. Once a workbook ......
Read more >
styleframe documentation - Read the Docs
Creates a StyleFrame object from an existing Excel. Note. read_excel() also accepts all arguments that pandas.read_excel() accepts as kwargs. Parameters.
Read more >
How to apply Styleframe to an excel file that has two sheets
Just like you would with pandas , use sheet_name : sf_sheet_a = StyleFrame.read_excel("test.xlsx", read_style=True, sheet_name='sheet_a') ...
Read more >
StyleFrame: A Library That Wraps Pandas and Openpyxl
StyleFrame package allows us to design the excel file on the data in a similar way to ... Once the style is ready,...
Read more >
Style Pandas Dataframe Like a Master - Towards Data Science
Pandas Styling API. As we mentioned pandas also have a styling system that lets you customize some aspects of its the rendered dataframe,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found