-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Coerce to native types to_dict list and index (#46751) #46752
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
@rhshadrach PR for fix |
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 great - very nice test. Small nits on the whatsnew.
doc/source/whatsnew/v1.5.0.rst
Outdated
@@ -500,6 +500,7 @@ Conversion | |||
- Bug in :func:`array` with ``FloatingDtype`` and values containing float-castable strings incorrectly raising (:issue:`45424`) | |||
- Bug when comparing string and datetime64ns objects causing ``OverflowError`` exception. (:issue:`45506`) | |||
- Bug in metaclass of generic abstract dtypes causing :meth:`DataFrame.apply` and :meth:`Series.apply` to raise for the built-in function ``type`` (:issue:`46684`) | |||
- Bug in :meth:`DataFrame.to_dict` for ``orient=="list"`` or ``orient=="index"`` was not returning native types. (:issue:`46751`) |
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.
nit: specify as the user would when calling the method; e.g. orient="list"
. Also no period before the issue #.
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.
@rhshadrach done
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.
lgtm
@rhshadrach looks like there are 2 tests failing that don't seem in any way related to my code, how should I proceed? |
It's actually just one; the |
Thanks @RogerThomas! |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.