Skip to content

REF: convert_dtypes return dtype objects #41622

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

Merged
merged 1 commit into from
May 24, 2021

Conversation

jbrockmendel
Copy link
Member

This turns out to be a blocker for sharing arrays.integers.safe_cast with maybe_cast_to_integer_array, which in turn is a blocker for #34460

@simonjayhawkins simonjayhawkins added Dtype Conversions Unexpected or buggy dtype conversions ExtensionArray Extending pandas with custom dtypes or arrays. labels May 23, 2021
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @jbrockmendel lgtm cc @Dr-Irv if any comments.

inferred_dtype = input_array.dtype
inferred_dtype = pandas_dtype("boolean")
elif isinstance(inferred_dtype, str) and inferred_dtype == "boolean":
inferred_dtype = pandas_dtype("boolean")
Copy link
Member

Choose a reason for hiding this comment

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

not adverse to combining conditions, black tends to make complex conditionals easy to grok imo. but nbd.

@simonjayhawkins simonjayhawkins added this to the 1.3 milestone May 23, 2021
@Dr-Irv
Copy link
Contributor

Dr-Irv commented May 23, 2021

Thanks @jbrockmendel lgtm cc @Dr-Irv if any comments.

lgtm

@simonjayhawkins simonjayhawkins merged commit 4f601b1 into pandas-dev:master May 24, 2021
@simonjayhawkins
Copy link
Member

Thanks @jbrockmendel

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 ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants