-
-
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
API/BUG: Handling Dtype Coercions in Series/Index #15832
Comments
I think our rules are pretty well established (FYI, we should actually document these). If
I think this is ok (let's test it). Maybe a more user friendly message though.
This should raise
This should raise |
Now that we were able to close 1 novice and 2 intermediate bugs, I'd like to try an advanced bug - this one :) |
sure! |
Display a more friendly error message when there is an OverflowError during Index construction. Partially addresses pandas-devgh-15832.
Display a more friendly error message when there is an OverflowError during Index construction. Partially addresses pandas-devgh-15832.
Display a more friendly error message when there is an OverflowError during Index construction. Partially addresses pandas-devgh-15832.
Related to the Index and Series constructors. Closes pandas-devgh-15832.
Related to the Index and Series constructors. Closes pandas-devgh-15832.
Related to the Index and Series constructors. Closes pandas-devgh-15832.
Related to the Index and Series constructors. Closes pandas-devgh-15832.
* Related to the Index and Series constructors. Closes pandas-devgh-15832. * Add integer dtype fixtures to conftest.py Can used for subsequent refactoring.
* Related to the Index and Series constructors. Closes pandas-devgh-15832. * Add integer dtype fixtures to conftest.py Can used for subsequent refactoring.
* Related to the Index and Series constructors. Closes pandas-devgh-15832. * Add integer dtype fixtures to conftest.py Can used for subsequent refactoring.
* MAINT: More useful error msg on Index overflow Display a more friendly error message when there is an OverflowError during Index construction. Partially addresses pandas-devgh-15832. * DOC: Clarify how Index.__new__ handles dtype Partially addresses pandas-devgh-15823.
* Related to the Index and Series constructors. Closes pandas-devgh-15832. * Add integer dtype fixtures to conftest.py Can used for subsequent refactoring.
* Related to the Index and Series constructors. Closes pandas-devgh-15832. * Add integer dtype fixtures to conftest.py Can used for subsequent refactoring.
* Related to the Index and Series constructors. Closes pandas-devgh-15832. * Add integer dtype fixtures to conftest.py Can used for subsequent refactoring.
* MAINT: More useful error msg on Index overflow Display a more friendly error message when there is an OverflowError during Index construction. Partially addresses pandas-devgh-15832. * DOC: Clarify how Index.__new__ handles dtype Partially addresses pandas-devgh-15823.
I know this is a super old issue but I ran into it when trying to address #30999 on pandas/tests/indexes/interval/test_as_type.py There's a test, If we want to remove the The code I am thinking to remove is:
The result of the first coercion is: In summary: My current thought is to keep the first |
sure removing xfail is good |
Off
master
(bd169d):So we got some coercions that fail but others that work. Although all of these issues involve
Index
, the first two are also applicable toSeries
(in the last issue, it does coerce all elements to integer).How should we handle failed coercions? Is the second case even a failure? Should iron out this.
xref #12758
xref #15187
The text was updated successfully, but these errors were encountered: