-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
BUG: ValueError when printing a DataFrame with DataFrame in its attrs #60459
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
Conversation
This reverts commit b48fc35.
This reverts commit 6b45ac5.
|
Hmm, I don't understand why there is a mypy error after this change: I don't get this error locally. |
mroeschke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Could you add a whatsnew entry in v3.0.0.rst?
Not sure where the right place is, I added in the |
|
Thanks @yuanx749 |
|
Many thanks @yuanx749 |
…pandas-dev#60459) * Add test * replace concat with np * Revert "replace concat with np" This reverts commit b48fc35. * Revert "Revert "replace concat with np"" This reverts commit 6b45ac5. * try fixing mypy error * Add whatsnew --------- Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.This PR replaces
concatwith slice in_truncate_horizontallyas in_truncate_verticallyto avoid the ValueError.pandas/pandas/io/formats/format.py
Lines 697 to 699 in a4fc97e