-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: implement maybe_promote_scalar #29331
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
return maybe_promote_scalar(dtype, fill_value) | ||
|
||
|
||
def maybe_promote_scalar(dtype, fill_value=np.nan): |
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 you add a doc-string / types
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.
will do
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.
added docstring, annotations i need to coordinate with others about implementing correct types in pd._typing
lgtm. ping on green. |
ping |
gentle ping. we're getting close to being done with the maybe_promote saga |
Unnecessary following #29416, closing. |
Narrowing down the set of cases where we have to worry about a non-scalar fill_value. I'm pretty sure we can narrow it down further, but saving that for a separate step as it has some complications for EA corner cases.
cc @jreback