Skip to content
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

BUG: non-64-bit numeric dtypes should raise in IntervalDtype constructor #51322

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 force-pushed the non_64_bit_numeric_dtypes_for_IntervalDtype branch from 2816531 to 1df0f0f Compare February 12, 2023 11:23
@topper-123
Copy link
Contributor Author

Ping. @jbrockmendel, could you take a look?

@simonjayhawkins simonjayhawkins added Bug Dtype Conversions Unexpected or buggy dtype conversions Regression Functionality that used to work in a prior pandas version Interval Interval data type labels Feb 22, 2023
@@ -1132,6 +1134,12 @@ def __new__(cls, subtype=None, closed: str_type | None = None):
"for IntervalDtype"
)
raise TypeError(msg)
elif is_any_real_numeric_dtype(subtype) and not is_64bit_real_numeric_dtype(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wont this allow through e.g. Int64 that we don't want? this seems a lot heavier than just checking itemsize

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Mar 26, 2023
@mroeschke
Copy link
Member

Looks like this has gone stale. Feel free to reopen if/when you're interested in picking this back up

@mroeschke mroeschke closed this May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Interval Interval data type Regression Functionality that used to work in a prior pandas version Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: can create IntervalDtype[float32] but not IntervalArray[float32]
4 participants