-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
excel header_style broken in 0.22 #19386
Comments
For me this does work on
But in any case, this wasn't intended to public - I do think it would be reasonable enhancement to add an argument to |
Hmm... I wonder why it's not working for me... Like I said, I can clearly see the module in my local path, and can see that line in the module... but it refuses to load. Would that be added here? Line 1555 in a9d8e04
I'm not sure... looks like there's some kind of new styling module, and I'm totally lost as to where to even start... It probably supports what I need, but there's not much documentation on this (it's listed as experimental in the docs) pandas/pandas/io/formats/style.py Line 160 in a9d8e04
|
Honestly, that looks like totally redundant code... |
I'm okay with removing all styles... even. It doesn't even have to be just the headers. |
Ah I was forgetting about the styler enhancements, if you really want no styles, easy enough solution is |
You should be able to override this now via #22759 |
@WillAyd I saw your response, but I still didn't see any solution in #22759 Do you have any idea how to remove header format? |
There isn't a currently exposed way of doing this. #25185 is open if you'd like to take a look and contribute something on that front |
From version 0.24 (Jan 25, 2019) this is now required:
currently still working for pandas version 1.2.4 (Apr 12, 2021) |
After updating, it is no longer possible to override the excel header styles.
Previously, this was possible in 0.19.2:
pd.formats.format.header_style = None
It seems header_style has been moving around constantly lately... Can we please put it somewhere and leave it there??? Or, if it's going to be moved constantly, it should live on a private module path. I realize python doesn't have private scoping, but there are paths in the pandas module that are privately scoped, by convention, yet don't follow the standard python convention of underscoring the names.
How are we supposed to accomplish the removal of styles on the latest build?
That module path DOES indeed exist... but something is wonky with the imports, it seems.
Exception is raised:
AttributeError: 'module' object has no attribute 'excel'
Possibly related? #15530
The text was updated successfully, but these errors were encountered: