-
Notifications
You must be signed in to change notification settings - Fork 54
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
AttributeError: 'Series' object has no attribute 'style' #130
Comments
I realized how much Issues I opened today. My apologize. :) I am really willing to support you as much I can. In case of that Issue the "problem" is located at this line StyleFrame/styleframe/style_frame.py Line 503 in c8a1117
The data frame in my example has an un-unique index. Pandas does support un-unique indexes. But your current code assumes that the index is unique. The whole code of Beside that problem the EDIT: |
Feel free to open as many issues as you can find :) I appreciate the willingness and any contribution is welcome.
|
This exact error also occurs for me when iterating over a list of dataframes. The code is:
The subject dataframes in |
Hi. I can't test right now, but I guess this is due to the usage of
'xlsxwriter' as an engine. Try to use 'openpyxl' which is the only engine
that styleframe supports.
I don't see how the iteration in itself can lead to this error.
|
Dear @gribna I also consider that your problem is separate from mine. I would recommend to open a new Issue with your example code. But improve your code and make it work out of the box including sample data. Your code is not clear for us. This would help us to analyze. I use the "default engine" (openpyxl) set by StyleFrame but the problem occurs. |
I got this issue too when exporting to excel ...
|
Also seeing this, confirmed it is due to a duplicate index |
While creating a minimal working example to illustrate a problem I run into this error:
And I don't understand the root of the problem. Maybe I did something wrong or this is a bug or edgy use case?
Version info
This is the code to reproduce.
EDIT:
The exception is not raised when I out-comment the line
df = df.set_index('idx1')
.The text was updated successfully, but these errors were encountered: