-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: use cached inferred_type when calling lib.infer_dtype(index) #33537
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
pandas/_libs/lib.pyx
Outdated
values = construct_1d_object_array_from_listlike(value) | ||
|
||
# See also: construct_1d_object_array_from_listlike | ||
values = np.empty(len(value), dtype=object) |
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.
why did you change from using the function for this?
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.
trying to untangle dependency structure
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.
can revert, this isnt related to the rest of the PR
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.
that function exists for a reason, to avoid constantly repeating the 2 lines you added. pls revert.
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.
updated + green
lgtm. can you merge master and ping on green. |
ping |
Among other things, this will let us avoid a couple of ugly calls in Series
Cleanup of nearby EA-handling code