Skip to content

BUG: Fix infer_dtype_from_scalar to infer IntervalDtype #30339

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

Merged

Conversation

jschendel
Copy link
Member

@jschendel jschendel added Bug Dtype Conversions Unexpected or buggy dtype conversions Interval Interval data type labels Dec 19, 2019
@jschendel jschendel added this to the 1.0 milestone Dec 19, 2019
@@ -758,7 +758,7 @@ Interval
^^^^^^^^

- Bug in :meth:`IntervalIndex.get_indexer` where a :class:`Categorical` or :class:`CategoricalIndex` ``target`` would incorrectly raise a ``TypeError`` (:issue:`30063`)
-
- Bug in ``pandas.core.dtypes.cast.infer_dtype_from_scalar`` where passing ``pandas_dtype=True`` did not infer :class:`IntervalDtype` (:issue:`30337`)
Copy link
Member Author

Choose a reason for hiding this comment

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

Can remove the whatsnew if it's not needed.

@jbrockmendel
Copy link
Member

LGTM

@TomAugspurger TomAugspurger merged commit 53a0dfd into pandas-dev:master Dec 19, 2019
@TomAugspurger
Copy link
Contributor

Thanks!

proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
@jschendel jschendel deleted the infer-dtype-from-scalar-interval branch December 19, 2019 17:26
AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Dec 29, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: infer_dtype_from_scalar with pandas_dtype=True doesn't infer IntervalDtype
3 participants