Skip to content

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

Closed

Conversation

jbrockmendel
Copy link
Member

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

return maybe_promote_scalar(dtype, fill_value)


def maybe_promote_scalar(dtype, fill_value=np.nan):
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

will do

Copy link
Member Author

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

@jreback jreback added the Dtype Conversions Unexpected or buggy dtype conversions label Nov 2, 2019
@jreback jreback added this to the 1.0 milestone Nov 2, 2019
@jreback
Copy link
Contributor

jreback commented Nov 2, 2019

lgtm. ping on green.

@jbrockmendel
Copy link
Member Author

ping

@jbrockmendel
Copy link
Member Author

gentle ping. we're getting close to being done with the maybe_promote saga

@jbrockmendel
Copy link
Member Author

Unnecessary following #29416, closing.

@jbrockmendel jbrockmendel deleted the maybe_promote_scalar branch November 6, 2019 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants