-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Styler apply_index and format_index applicable to index names #48936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
this has been raised elsewhere, i cant, off the top of my head, remember where. Since Styler methods are designed to be chained it might be worth sketching out a solution where we could re-use existing methods to extend this functionality rather than add new api methods. Something like |
This is the solution I've come up with as well.
|
the general approach i have adopted in the past PR wise has been first get it working for html with tests. then a separate pr for latex woth tests and finally a pr for excel with tests. all come in the same release, probably aiming at 1.6 now if someone has the time to do a pr. it is probably worth it since the names are the last outstanding element that cant be formatted or styled |
take |
Will probably need some assistance with the HTML and LaTeX tests, but I'll get the ball rolling |
@tehunter You've lost interested in finishing? I would like to take this up if so. |
@Delengowski I would suggest following this up, possibly revising the PR if you can |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
I would love to be able to format both column names and index names when trying to export to excel.
Feature Description
Format both column names and index names when trying to export to excel.
df=pd.DataFrame()
df.style.apply_map_index_names(func:, axis,)
Alternative Solutions
There are a few modules regarding Python and Excel that I believe have this feature like StyleSheet
Additional Context
No response
The text was updated successfully, but these errors were encountered: