Skip to content
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

Implement float() and complex() for Missing #39647

Merged
merged 2 commits into from
Feb 14, 2021
Merged

Implement float() and complex() for Missing #39647

merged 2 commits into from
Feb 14, 2021

Conversation

nalimilan
Copy link
Member

@nalimilan nalimilan commented Feb 13, 2021

float is already defined for missing and AbstractArray{Union{T, Missing}}.
Add a definition taking a type consistent with these methods.
Also implement similar definitions for complex.

Fixes #29693. Spotted at https://github.com/JuliaLang/Statistics.jl/pull/61.

`float` is already defined for `missing` and `AbstractArray{Union{T, Missing}}`.
Add a definition taking a type consistent with these methods.
Also implement similar definitions for `complex`.
@nalimilan nalimilan added domain:complex Complex numbers domain:missing data Base.missing and related functionality labels Feb 13, 2021
@quinnj quinnj merged commit 1eb5d78 into master Feb 14, 2021
@quinnj quinnj deleted the nl/floatcomplex branch February 14, 2021 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:complex Complex numbers domain:missing data Base.missing and related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

float(Union{Missing, Float32}) Failing in 1.0.0, From Using quantile In a Particular Way
2 participants