-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
TST: test custom _formatter for ExtensionArray + revert ExtensionArrayFormatter removal #26845
Conversation
This reverts commit a00659a.
Codecov Report
@@ Coverage Diff @@
## master #26845 +/- ##
===========================================
- Coverage 91.86% 41.12% -50.74%
===========================================
Files 179 179
Lines 50700 50700
===========================================
- Hits 46576 20851 -25725
- Misses 4124 29849 +25725
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26845 +/- ##
==========================================
- Coverage 91.86% 91.86% -0.01%
==========================================
Files 179 179
Lines 50700 50706 +6
==========================================
+ Hits 46576 46580 +4
- Misses 4124 4126 +2
Continue to review full report at Codecov.
|
why revert this? it is just causing churn. it was clear that the change was just a step in fixing this. tests are ok. |
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.
see comments
Did you read my comments in the PR? (#26833 (comment)) Then please give reasons why you would rather break the EA interface instead of temporarily reverting. We can fix issues with formatting in a better way in follow-up PRs. Without the revert, the test will fail, so I could only add a xfailed test. |
I read your comment. I disagree. |
I’d prefer not breaking things.
… On Jun 14, 2019, at 07:32, Jeff Reback ***@***.***> wrote:
Did you read my comments in the PR? (#26833 (comment)) Then please give reasons why you would rather break the EA interface instead of temporarily reverting. We can fix issues with formatting in a better way in follow-up PRs.
Without the revert, the test will fail, so I could only add a xfailed test.
I read your comment. I disagree.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Can you then please give some reasoning? |
how is this breaking an existing test? it did NOT. If you add something, then let's fix it. But reverting is kind of silly here. What to preserve some kind of history? this is just churning for no good reason. It was very explicit that this was merged to provide an easier change path. I don't see anything that has changed. If you want to merge an xfail test, sure. |
Jeff, it only broke no tests because we forgot to properly test it. But what I am adding a test for here, has always been the intention of the |
EA._formatter is completely and utterly broken. Papering this over is not going to help. Let's just move forward. As I said I am happy to merge the test with an xfail. |
Lets no break other libraries relying on the documented behavior.
… On Jun 14, 2019, at 07:43, Jeff Reback ***@***.***> wrote:
Jeff, it only broke no tests because we forgot to properly test it. But what I am adding a test for here, has always been the intention of the _formatter method of the EA interface. And we for sure broke that.
EA._formatter is completely and utterly broken. Papering this over is not going to help. Let's just move forward. As I said I am happy to merge the test with an xfail.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This method was purposefully introduced recently as part of the EA interface: #23601 (a PR that you approved, without calling it "utterly broken") |
and w/o a test that is useless. If you want to fix it go right ahead. But as I said reverting is just churn. Would rather actually fix this, which has been broken for forever. So this will be broken until then |
That's utterly ridiculous, I approve virtually PRs. |
Actually IIRC I voiced many many arguments on how Index / EA repr's are completely different and you guys pushed it thru. So if its broken , then please fix it. merging to avoid this vacuous argument. |
Thanks for merging.
Yes, we had disagreements about that. But as a final thing, I want to note that this discussion is not about the difference between Index vs Series vs EA reprs, but about the simple fact that EAs need a way to control how their scalar values are represented in any of those reprs. That is a basic functionality we had from the beginning of the EA interface (even before we had the discussion about the default repr). |
xref #26833 (comment)
@simonjayhawkins this would be a test for the
_formatter
functionality (it is passing on master before the removal of ExtensionArrayFormatterAdds an actual test for EA._formatter + reverts #26833 until we have a more complete solution for simplifying the formatters that take the EA._formatter into account.